diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2015-02-07 14:48:06 +0100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-02-11 15:59:34 -0500 |
commit | 0a0c5d7c0e6d45789f4351c0b56511c80f13eaa0 (patch) | |
tree | fa22f11c28aed54d7249f677ae2523f136979984 /src/test/zero_length_keys.sh | |
parent | f84a54c159e89e90fb4b3ce07a9ddfbd6f1dc8a0 (diff) | |
download | tor-0a0c5d7c0e6d45789f4351c0b56511c80f13eaa0.tar.gz tor-0a0c5d7c0e6d45789f4351c0b56511c80f13eaa0.zip |
Check that mktemp result is a directory
Fixes part of bug #14478, patch idea suggested by an anonymous
contributor. Thanks!
Diffstat (limited to 'src/test/zero_length_keys.sh')
-rwxr-xr-x | src/test/zero_length_keys.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/zero_length_keys.sh b/src/test/zero_length_keys.sh index 7c99564f1a..0dd67c1780 100755 --- a/src/test/zero_length_keys.sh +++ b/src/test/zero_length_keys.sh @@ -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. |