diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-11-25 17:53:31 +0100 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-11-25 17:53:31 +0100 |
commit | 712daa411a2ab3d0add9d9e4a5b36ca81b53f674 (patch) | |
tree | 46f337fac35630aa813287ea9e4b2412f24b2bb1 /bin | |
parent | c4ea06e5e40c2108ed0ee79befc71790f2fc08b4 (diff) | |
download | gitlab-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-x | bin/gitlab-shell | 2 |
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 |