Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Aug 2002 10:08:58 -0700 (PDT)
From:      Chris Vance <cvance@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 15390 for review
Message-ID:  <200208011708.g71H8wNR008306@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=15390

Change 15390 by cvance@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@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208011708.g71H8wNR008306>