]> git.zerfleddert.de Git - upsgraph/blobdiff - upsgraph.pl
fix argument for print
[upsgraph] / upsgraph.pl
index 020569f69534184d9e387eee923fc7660b2b1957..5c94daf0535b5219d0a5e7dc32ac33635b5d8f62 100755 (executable)
@@ -31,7 +31,7 @@ if ($> == 0) {
                exit(1);
        }
 
                exit(1);
        }
 
-       print "Running as root, switching to ".$ARGV[3]."\n";
+       print "Running as root, switching to ".$ARGV[1]."\n";
        $< = $> = $ARGV[1];
 }
 
        $< = $> = $ARGV[1];
 }
 
Impressum, Datenschutz