From: Daniel Kahn Gillmor Date: Fri, 24 Jul 2009 21:16:42 +0000 (-0400) Subject: started preparing tests to work under loosely-permissioned temporary directories. X-Git-Tag: monkeysphere_0.26~20 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=2e7a44d1e4fa348849bc821ced6d04ace4006d3c;p=monkeysphere.git started preparing tests to work under loosely-permissioned temporary directories. --- diff --git a/tests/basic b/tests/basic index 83bf753..6eb0b27 100755 --- a/tests/basic +++ b/tests/basic @@ -2,7 +2,8 @@ # Tests to ensure that the monkeysphere is working # -# unset MONKEYSPHERE_TEST_NO_EXAMINE to examine +# unset MONKEYSPHERE_TEST_NO_EXAMINE to get a prompt to examine the +# test state after failure. # Authors: # Daniel Kahn Gillmor @@ -145,6 +146,35 @@ export SOCKET="$TEMPDIR"/ssh-socket export DISPLAY=monkeys +## we cannot do proper directory permissions checking if the current +## working directory has unsatisfactory permissions: +if ( . "$MONKEYSPHERE_SYSSHAREDIR"/common && check_key_file_permissions $(whoami) "$TEMPDIR" ) ; then + echo "Permissions on temporary directory '$TEMPDIR' are OK for permissions checks." + TEMPDIR_PERMISSIONS_SAFE=yes +else + cat <> "$SSHD_CONFIG" +StrictModes no +EOF +fi + ###################################################################### ### SERVER HOST SETUP