From 7ea02dcd8934a984035979f3d2a8f2db282a9e47 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Sat, 30 Aug 2003 14:51:01 +0000 Subject: [PATCH] Return (-1) not (ENOENT) for mac_prepare_type(), and set errno to ENOENT instead. Reported by: "Kenneth D. Merry" Submitted by: Bryan Liesner --- lib/libc/posix1e/mac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libc/posix1e/mac.c b/lib/libc/posix1e/mac.c index def4bb20f21..d8a1b2ddc81 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