Skip to content

Commit

Permalink
Merge pull request #2451 from drwetter/fix_stupid_umaskerror_3.0
Browse files Browse the repository at this point in the history
Bail out if user error bc of umask (3.0 branch)
  • Loading branch information
drwetter authored Dec 24, 2023
2 parents 68dec54 + 02220d2 commit 0de609d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion testssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17555,7 +17555,9 @@ maketempf() {
fi
TEMPDIR=$(mktemp -d "$PWD/testssl.XXXXXX") || exit $ERR_FCREATE
fi
TMPFILE=$TEMPDIR/tempfile.txt || exit $ERR_FCREATE
ls "$TEMPDIR/" 2>/dev/null || fatal "temporary directory needed not readable" $ERR_FCREATE
TMPFILE=$TEMPDIR/tempfile.txt
touch $TMPFILE 2>/dev/null || fatal "temporary directory needed not writeable" $ERR_FCREATE
if [[ "$DEBUG" -eq 0 ]]; then
ERRFILE="/dev/null"
else
Expand Down

0 comments on commit 0de609d

Please sign in to comment.