Skip to content

Commit 0de609d

Browse files
authored
Merge pull request #2451 from drwetter/fix_stupid_umaskerror_3.0
Bail out if user error bc of umask (3.0 branch)
2 parents 68dec54 + 02220d2 commit 0de609d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testssl.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17555,7 +17555,9 @@ maketempf() {
1755517555
fi
1755617556
TEMPDIR=$(mktemp -d "$PWD/testssl.XXXXXX") || exit $ERR_FCREATE
1755717557
fi
17558-
TMPFILE=$TEMPDIR/tempfile.txt || exit $ERR_FCREATE
17558+
ls "$TEMPDIR/" 2>/dev/null || fatal "temporary directory needed not readable" $ERR_FCREATE
17559+
TMPFILE=$TEMPDIR/tempfile.txt
17560+
touch $TMPFILE 2>/dev/null || fatal "temporary directory needed not writeable" $ERR_FCREATE
1755917561
if [[ "$DEBUG" -eq 0 ]]; then
1756017562
ERRFILE="/dev/null"
1756117563
else

0 commit comments

Comments
 (0)