mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-03 23:39:45 +01:00
Merge pull request #2451 from drwetter/fix_stupid_umaskerror_3.0
Bail out if user error bc of umask (3.0 branch)
This commit is contained in:
commit
0de609da8c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user