Skip to contentSkip to conversation

setfiles -c is failing do to bad checking on options.

PATCH Daniel J Walsh 2 participants 2 messages Jun 4, 2007 – Jun 5, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw
setfiles/setfiles.c +0 -2
diff --exclude-from=exclude --exclude=sepolgen-1.0.8 --exclude=gui --exclude=po -N -u -r nsapolicycoreutils/setfiles/setfiles.c policycoreutils-2.0.19/setfiles/setfiles.c
@@ -858,8 +858,6 @@
 		if (strcmp(input_filename, "-") != 0)
 			fclose(f);
 	} else {
-		if (optind >= argc)
-			usage(argv[0]);
 		for (i = optind; i < argc; i++) {
 			errors |= process_one(argv[i]);
 		}
#1 lore raw

setfiles/setfiles.c line 863

Quoted 13 lines · Daniel J Walsh

plain text document attachment (diff)
diff --exclude-from=exclude --exclude=sepolgen-1.0.8 --exclude=gui --exclude=po -N -u -r nsapolicycoreutils/setfiles/setfiles.c policycoreutils-2.0.19/setfiles/setfiles.c

setfiles/setfiles.c +0 -2
@@ -858,8 +858,6 @@
 		if (strcmp(input_filename, "-") != 0)
 			fclose(f);
 	} else {
-		if (optind >= argc)
-			usage(argv[0]);
 		for (i = optind; i < argc; i++) {
 			errors |= process_one(argv[i]);
 		}

Thanks, merged. Only affects trunk, as this was due to the merger of setfiles and restorecon into a single program.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.