diff --git a/server/usr/bin/rs-run-ssh-cmd b/server/usr/bin/rs-run-ssh-cmd index c1552d7..8e9c2d1 100755 --- a/server/usr/bin/rs-run-ssh-cmd +++ b/server/usr/bin/rs-run-ssh-cmd @@ -28,7 +28,7 @@ home_dir=$1 -if $(echo "${SSH_ORIGINAL_COMMAND}" | grep -q "^\(internal-sftp\|/usr/lib/ssh/sftp-server\)"); then +if $(echo "${SSH_ORIGINAL_COMMAND}" | grep -q "^\(internal-sftp\|.*/sftp-server\)"); then export HOME="${home_dir}/files" cd $HOME [ -x /usr/lib/ssh/sftp-server ] && exec /usr/lib/ssh/sftp-server -R