PERFORCE change 24451 for review

Brian Feldman green at freebsd.org
Thu Jan 30 19:17:34 GMT 2003


http://perforce.freebsd.org/chv.cgi?CH=24451

Change 24451 by green at green_laptop_2 on 2003/01/30 11:16:41

	Calls to mac_prepare(3) could fail.

Affected files ...

.. //depot/projects/trustedbsd/sebsd/usr.bin/login/login.c#2 edit

Differences ...

==== //depot/projects/trustedbsd/sebsd/usr.bin/login/login.c#2 (text+ko) ====

@@ -522,8 +522,8 @@
 			bail(NO_SLEEP_EXIT, 1);
 		}
 		free(labeltext);
-		mac_prepare(&oldttylabel, "sebsd");
-		if (mac_get_file(ttyn, oldttylabel) != 0 ||
+		if (mac_prepare(&oldttylabel, "sebsd") != 0 ||
+		    mac_get_file(ttyn, oldttylabel) != 0 ||
 		    mac_to_text(oldttylabel, &oldttylabeltext) != 0) {
 			syslog(LOG_ERR, "Getting SEBSD label on terminal "
 			    "%s: %m", ttyn);
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list