mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Check that mktemp result is a directory
Fixes part of bug #14478, patch idea suggested by an anonymous contributor. Thanks!
This commit is contained in:
parent
f84a54c159
commit
0a0c5d7c0e
@ -30,6 +30,10 @@ if [ -z "$DATA_DIR" ]; then
|
||||
echo "Failure: mktemp invocation returned empty string"
|
||||
exit 255
|
||||
fi
|
||||
if [ -d "$DATA_DIR" ]; then
|
||||
echo "Failure: mktemp invocation result doesn't point to directory"
|
||||
exit 255
|
||||
fi
|
||||
trap "rm -rf '$DATA_DIR'" 0
|
||||
|
||||
# DisableNetwork means that the ORPort won't actually be opened.
|
||||
|
Loading…
Reference in New Issue
Block a user