PERFORCE change 89690 for review
    Robert Watson 
    rwatson at FreeBSD.org
       
    Sat Jan 14 11:25:58 PST 2006
    
    
  
http://perforce.freebsd.org/chv.cgi?CH=89690
Change 89690 by rwatson at 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);
    
    
More information about the p4-projects
mailing list