aboutsummaryrefslogtreecommitdiffstats
path: root/modules/restrictshell
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-09-26 17:37:21 +0000
committerNicolas Vigier <boklm@mageia.org>2011-09-26 17:37:21 +0000
commit708605cdaccaa38c38b28af7df5280007f9d9604 (patch)
treec5f65a82eb6acbfbd9c7fb289e05673717dc880a /modules/restrictshell
parentdb8106ab7b88f563131d0d02ac2a8f53be898c2d (diff)
downloadpuppet-708605cdaccaa38c38b28af7df5280007f9d9604.tar
puppet-708605cdaccaa38c38b28af7df5280007f9d9604.tar.gz
puppet-708605cdaccaa38c38b28af7df5280007f9d9604.tar.bz2
puppet-708605cdaccaa38c38b28af7df5280007f9d9604.tar.xz
puppet-708605cdaccaa38c38b28af7df5280007f9d9604.zip
fix regexp to detect git commands (fix #2513)
Diffstat (limited to 'modules/restrictshell')
-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 002062de..155bc300 100644
--- a/modules/restrictshell/templates/sv_membersh.pl
+++ b/modules/restrictshell/templates/sv_membersh.pl
@@ -147,7 +147,7 @@ if ($#ARGV == 1 and $ARGV[0] eq "-c") {
push( @args, @args_user );
exec($bin_svn, @args) or die("Failed to exec $bin_svn: $!");
- } elsif ($use_git and $ARGV[1] =~ m:git-.+:) {
+ } elsif ($use_git and $ARGV[1] =~ m:^git-.+:) {
# Delegate filtering to git-shell
exec($bin_git, @ARGV) or die("Failed to exec $bin_git: $!");