diff --git a/src/gitolite.pm b/src/gitolite.pm index 4cfa8e1..74e1bbc 100644 --- a/src/gitolite.pm +++ b/src/gitolite.pm @@ -137,11 +137,11 @@ sub get_set_perms wrap_chdir("$repo_base_abs"); wrap_chdir("$repo.git"); if ($verb eq 'getperms') { - print STDERR `cat gl-perms 2>/dev/null`; + system("cat", "gl-perms") if -f "gl-perms"; } else { system("cat > gl-perms"); - print STDERR "New perms are:\n"; - print STDERR `cat gl-perms`; + print "New perms are:\n"; + system("cat", "gl-perms"); } } diff --git a/src/gl-auth-command b/src/gl-auth-command index 6be5bde..1d6a33a 100755 --- a/src/gl-auth-command +++ b/src/gl-auth-command @@ -105,14 +105,14 @@ if ($cmd =~ $CUSTOM_COMMANDS) { } else { die "$cmd doesn't make sense to me\n"; } - exit 1; + exit 0; } # people allowed to get a shell can get basic access info by asking nicely if ($cmd eq 'info') { &report_basic($GL_ADMINDIR, $GL_CONF_COMPILED, $user); print "you also have shell access\n\r" if $shell_allowed; - exit 1; + exit 0; } # ----------------------------------------------------------------------------