PERFORCE change 15390 for review

Chris Vance cvance at freebsd.org
Thu Aug 1 17:08:58 GMT 2002


http://people.freebsd.org/~peter/p4db/chv.cgi?CH=15390

Change 15390 by cvance at cvance_laptop on 2002/08/01 10:08:27

	Don't modify the label on files when the specs say <<none>>

Affected files ...

.. //depot/projects/trustedbsd/mac/sbin/sebsd_setfiles/setfiles.c#2 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sbin/sebsd_setfiles/setfiles.c#2 (text+ko) ====

@@ -157,6 +157,13 @@
 		       spec[idx].context);
 	}
 
+	if (strcmp(spec[idx].context, "<<none>>") == 0) {
+		printf("File %s matches spec <<none>>, Not labeling it!\n",
+		       path);
+		return;
+	}
+
+
 	/*
 	 * TBD: Files can have hard links and be labeled multiple
 	 * times. To stop this from happening, we need to keep track
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