diff options
author | rwatson <rwatson@FreeBSD.org> | 2003-08-30 14:51:01 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2003-08-30 14:51:01 +0000 |
commit | e950ec074d55474456fe7340b1cdc6f7779ff58d (patch) | |
tree | f177eacb18fa6fd1176305effb7e8db33950af6b /lib/libc/posix1e/mac.c | |
parent | ba9e4df02e5056c36501eea3fcb7f496883a68a7 (diff) | |
download | FreeBSD-src-e950ec074d55474456fe7340b1cdc6f7779ff58d.zip FreeBSD-src-e950ec074d55474456fe7340b1cdc6f7779ff58d.tar.gz |
Return (-1) not (ENOENT) for mac_prepare_type(), and set errno to
ENOENT instead.
Reported by: "Kenneth D. Merry" <ken@kdm.org>
Submitted by: Bryan Liesner <bleez@comcast.net>
Diffstat (limited to 'lib/libc/posix1e/mac.c')
-rw-r--r-- | lib/libc/posix1e/mac.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/posix1e/mac.c b/lib/libc/posix1e/mac.c index def4bb2..d8a1b2d 100644 --- a/lib/libc/posix1e/mac.c +++ b/lib/libc/posix1e/mac.c @@ -365,7 +365,8 @@ mac_prepare_type(struct mac **mac, const char *name) return (mac_prepare(mac, ld->ld_labels)); } - return (ENOENT); /* XXXMAC: ENOLABEL */ + errno = ENOENT; + return (-1); /* XXXMAC: ENOLABEL */ } int |