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>
This commit is contained in:
Robert Watson 2003-08-30 14:51:01 +00:00
parent bfe61e1700
commit 7ea02dcd89

View file

@ -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