summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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