]> git.pld-linux.org Git - packages/nagios-plugin-check_iptables.git/commitdiff
- $* is local in function, save global value
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 18 Mar 2010 18:05:03 +0000 (18:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    check_iptables -> 1.6

check_iptables

index 773a773f8c08777f7b95c2f1b35cf8d13a9e875c..bf04fd297f27142effe654a449743a6488dd8b7b 100644 (file)
@@ -4,6 +4,7 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
 PROGNAME=${0##*/}
 PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'`
 REVISION=`echo '$Revision$' | sed -e 's/[^0-9.]//g'`
+ARGS="$*"
 
 . $PROGPATH/utils.sh
 
@@ -54,7 +55,7 @@ setup_sudoers() {
        cat /etc/sudoers > $new
        cat >> $new <<-EOF
 
-       # Lines matching CHECK_IPTABLES added by $0 $* on $(date)
+       # Lines matching CHECK_IPTABLES added by $0 $ARGS on $(date)
        User_Alias CHECK_IPTABLES=nagios
        CHECK_IPTABLES ALL=(root) NOPASSWD: $list_iptables
        EOF
This page took 0.104725 seconds and 4 git commands to generate.