Date: Sat, 14 Jan 2006 19:25:57 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 89690 for review Message-ID: <200601141925.k0EJPvrl098449@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=89690 Change 89690 by rwatson@rwatson_peppercorn on 2006/01/14 19:25:07 If getauditflagsbin() fails in getfauditflags(), fail getfauditflags(). Affected files ... .. //depot/projects/trustedbsd/openbsm/libbsm/bsm_user.c#8 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_user.c#8 (text+ko) ==== @@ -257,9 +257,11 @@ lastmask->am_success = 0; lastmask->am_failure = 0; - /* get the system mask */ - if (getacflg(auditstring, MAX_AUDITSTRING_LEN) == 0) - getauditflagsbin(auditstring, lastmask); + /* Get the system mask. */ + if (getacflg(auditstring, MAX_AUDITSTRING_LEN) == 0) { + if (getauditflagsbin(auditstring, lastmask) != 0) + return (-1); + } ADDMASK(lastmask, usremask); SUBMASK(lastmask, usrdmask);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601141925.k0EJPvrl098449>