]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Allow low-priv tests to write to pipe dir.
authorDarren Tucker <dtucker@dtucker.net>
Thu, 18 Jul 2019 00:17:54 +0000 (10:17 +1000)
committerDarren Tucker <dtucker@dtucker.net>
Thu, 18 Jul 2019 00:17:54 +0000 (10:17 +1000)
When running regression tests with Valgrind and SUDO, the low-priv agent
tests need to be able to create pipes in the appropriate directory.

regress/test-exec.sh

index 2744707614ef18baaa1d2c0efc0c7a151836fa28..a0bff3112fb0824a019156de32c8c815c0ce2b36 100644 (file)
@@ -154,8 +154,10 @@ SCP_BIN=${SCP}
 if [ "x$USE_VALGRIND" != "x" ]; then
        rm -rf $OBJ/valgrind-out $OBJ/valgrind-vgdb
        mkdir -p $OBJ/valgrind-out $OBJ/valgrind-vgdb
-       # ensure agent low-priv tests can write logs.
-       chmod 777 $OBJ/valgrind-out
+       # When using sudo ensure low-priv tests can write pipes and logs.
+       if [ "x$SUDO" != "x" ]; then
+               chmod 777 $OBJ/valgrind-out $OBJ/valgrind-vgdb
+       fi
        VG_TEST=`basename $SCRIPT .sh`
 
        # Some tests are difficult to fix.