PERFORCE change 21377 for review

Brian Feldman green at freebsd.org
Fri Nov 22 18:23:33 GMT 2002


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

Change 21377 by green at green_laptop_2 on 2002/11/22 10:23:06

	Do the right thing for files that are not to be relabeled
	at all (not crash).

Affected files ...

.. //depot/projects/trustedbsd/mac/sbin/setfsmac/setfsmac.c#8 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sbin/setfsmac/setfsmac.c#8 (text+ko) ====

@@ -454,6 +454,8 @@
 			 /* add length of "x\0"/"y," */
 			size += strlen(ls->match->mactext) + 1;
 	}
+	if (size == 0)
+		return (0);
 	macstr = malloc(size);
 	if (macstr == NULL)
 		err(1, "malloc");
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