summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2015-11-25 17:53:31 +0100
committerJacob Vosmaer <contact@jacobvosmaer.nl>2015-11-25 17:53:31 +0100
commit712daa411a2ab3d0add9d9e4a5b36ca81b53f674 (patch)
tree46f337fac35630aa813287ea9e4b2412f24b2bb1 /bin
parentc4ea06e5e40c2108ed0ee79befc71790f2fc08b4 (diff)
downloadgitlab-shell-712daa411a2ab3d0add9d9e4a5b36ca81b53f674.tar.gz
Limit availability of SSH_ORIGINAL_COMMAND
Hoping this makes it more obvious when code touches the very unsafe contents of this variable.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gitlab-shell2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gitlab-shell b/bin/gitlab-shell
index 084f0c9..f145a1b 100755
--- a/bin/gitlab-shell
+++ b/bin/gitlab-shell
@@ -17,7 +17,7 @@ require_relative '../lib/gitlab_init'
#
require File.join(ROOT_PATH, 'lib', 'gitlab_shell')
-if GitlabShell.new(key_id, original_cmd).exec
+if GitlabShell.new(key_id).exec(original_cmd)
exit 0
else
exit 1