Fix pushing
authorJamie Cameron <jcameron@webmin.com>
Wed, 29 Jun 2011 19:00:06 +0000 (15:00 -0400)
committerJamie Cameron <jcameron@webmin.com>
Wed, 29 Jun 2011 19:00:06 +0000 (15:00 -0400)
firewall/open-ports.pl [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 8b33948..045d196
@@ -102,7 +102,7 @@ PORT: foreach $p (@ARGV) {
        else {
                $r->{'dport'} = [ "", $p ];
                }
-       splice(@{$filter->{'files'}}, $r);
+       unshift(@{$filter->{'files'}}, $r);
        push(@added, $p);
        }
 
@@ -135,4 +135,3 @@ else {
        print STDERR "Add ports are already open\n";
        exit(0);
        }
-