Skip to contentSkip to conversation

newrules.pl

PATCH Carsten Grohmann 2 participants 2 messages Oct 23, 2002 – Oct 28, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi,

anytime if I use "newrules.pl --help" to get the syntax I receive a error message. The attached patch add the option "--help" to show the syntax to newrules.

Carsten

Index: newrules.pl
===================================================================
RCS file: /cvsroot/selinux/nsa/selinux/scripts/newrules.pl,v retrieving revision 1.1.1.2

newrules.pl +1 -0
diff -u -r1.1.1.2 newrules.pl
@@ -24,6 +24,7 @@
         elsif ($opt eq "-v") { $verbose++; }
         elsif ($opt eq "-i") { $input = shift @ARGV; }
         elsif ($opt eq "-o") { $output= shift @ARGV; }
+	elsif ($opt eq "--help") { &printUsage; }
 		else  { print "unknown option, '$opt'\n\n"; &printUsage; }
 }
 
#1 lore raw
Quoted 3 lines · Carsten Grohmann

anytime if I use "newrules.pl --help" to get the syntax I receive a error message. The attached patch add the option "--help" to show the syntax to newrules.

Thanks, merged.

--
Stephen D. Smalley, NAI Labs
[email protected]

--
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.