Commit fa9f2d14 authored by Pontus Freyhult's avatar Pontus Freyhult

Run "exec 0" instead of "exec" in case the last command in the user's startup...

Run "exec 0" instead of "exec" in case the last command in the user's startup files ended with nonzero exit status.

Rev: src/testsuite/lsh-1-test:1.4
Rev: src/testsuite/lsh-5-test:1.2
Rev: src/testsuite/lsh-6-test:1.2
parent d1722fad
......@@ -14,4 +14,4 @@ fi
. $srcdir/functions.sh
spawn_lshd && run_lsh "exit" && test_success
spawn_lshd && run_lsh "exit 0" && test_success
......@@ -16,4 +16,4 @@ fi
HOSTKEY=$srcdir/key-2.private
spawn_lshd && run_lsh "exit" && test_success
spawn_lshd && run_lsh "exit 0" && test_success
......@@ -24,7 +24,7 @@ LSHD_FLAGS="$LSHD_FLAGS -c all"
spawn_lshd && for c in $ALGORITHMS ; do
echo Trying encryption flag $c
if LSH_FLAGS="$OLD_FLAGS -c $c" exec_lsh "exit"; then
if LSH_FLAGS="$OLD_FLAGS -c $c" exec_lsh "exit 0"; then
echo " Ok"
else
echo " Fail"; test_fail
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment