From 68043ddd53a9f8dc3a4e28e69e06c81a0764fbe4 Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel Date: Wed, 21 Sep 2005 21:15:48 +0000 Subject: Fixed ssh_wrapper svn path=/local/; revision=429 --- z-distfiles/scripts-gw/ssh_wrapper | 4 ++-- 1 file 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 -- cgit v1.2.3-65-gdbad