summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@gentoo.org>2005-09-21 21:15:48 +0000
committerGunnar Wrobel <wrobel@gentoo.org>2005-09-21 21:15:48 +0000
commit68043ddd53a9f8dc3a4e28e69e06c81a0764fbe4 (patch)
tree2809f0c32bdeab6b81d57db6d39cb874d78087c3 /z-distfiles
parentAdded ssh_wrapper script to my scripts. Bumped to version 1.2.3 (diff)
downloadmisc-68043ddd53a9f8dc3a4e28e69e06c81a0764fbe4.tar.gz
misc-68043ddd53a9f8dc3a4e28e69e06c81a0764fbe4.tar.bz2
misc-68043ddd53a9f8dc3a4e28e69e06c81a0764fbe4.zip
Fixed ssh_wrapper
svn path=/local/; revision=429
Diffstat (limited to 'z-distfiles')
-rwxr-xr-xz-distfiles/scripts-gw/ssh_wrapper4
1 files changed, 2 insertions, 2 deletions
diff --git a/z-distfiles/scripts-gw/ssh_wrapper b/z-distfiles/scripts-gw/ssh_wrapper
index 0d9a7b4..9055050 100755
--- a/z-distfiles/scripts-gw/ssh_wrapper
+++ b/z-distfiles/scripts-gw/ssh_wrapper
@@ -13,7 +13,6 @@ check_run () {
exec $SSH_ORIGINAL_COMMAND
return 0
fi
- echo "Command REJECTED!" >> $LOGFILE
return 1
}
@@ -23,7 +22,8 @@ echo "Remote command: ${SSH_ORIGINAL_COMMAND}" >> $LOGFILE
if [ -d "${HOME}/.ssh_wrap" ]; then
for allowed in ${HOME}/.ssh_wrap/*
do
- check_run `head -n 1 "${allowed}"`
+ command=`head -n 1 "${allowed}"`
+ check_run "${command}"
done
else
echo "No commands allowed!" >> $LOGFILE