summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-08-30 14:51:01 +0000
committerrwatson <rwatson@FreeBSD.org>2003-08-30 14:51:01 +0000
commite950ec074d55474456fe7340b1cdc6f7779ff58d (patch)
treef177eacb18fa6fd1176305effb7e8db33950af6b /lib
parentba9e4df02e5056c36501eea3fcb7f496883a68a7 (diff)
downloadFreeBSD-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')
-rw-r--r--lib/libc/posix1e/mac.c3
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
OpenPOWER on IntegriCloud