aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <mageia@blino.org>2016-02-07 13:29:35 +0100
committerOlivier Blin <dev@blino.org>2016-02-07 13:59:29 +0100
commitc234268e88960dae9b812db591f5b1635facd3e6 (patch)
tree73bfb00cca88a00fa1f4072e8ddca8a26f46ed40
parentd1231434e7aaa67247e031e67536c700dc2cebf1 (diff)
downloadpuppet-c234268e88960dae9b812db591f5b1635facd3e6.tar
puppet-c234268e88960dae9b812db591f5b1635facd3e6.tar.gz
puppet-c234268e88960dae9b812db591f5b1635facd3e6.tar.bz2
puppet-c234268e88960dae9b812db591f5b1635facd3e6.tar.xz
puppet-c234268e88960dae9b812db591f5b1635facd3e6.zip
sv_membersh: fix error message regarding arguments
-rw-r--r--modules/restrictshell/templates/sv_membersh.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/restrictshell/templates/sv_membersh.pl b/modules/restrictshell/templates/sv_membersh.pl
index 155bc300..d4a6d6d4 100644
--- a/modules/restrictshell/templates/sv_membersh.pl
+++ b/modules/restrictshell/templates/sv_membersh.pl
@@ -169,7 +169,7 @@ if ($#ARGV == 1 and $ARGV[0] eq "-c") {
}
unless (-e "/etc/membersh-errormsg") {
- if ($ARGV) {
+ if (@ARGV) {
print STDERR "You tried to execute: @ARGV[1..$#ARGV]\n";
} else {
print STDERR "You tried to run a interactive shell.\n"