make_tempdir must create shorter paths.

This commit is contained in:
Tom Limoncelli
2017-02-20 12:15:05 -05:00
parent ba2bfcc0de
commit c89951c3db

View File

@@ -122,7 +122,10 @@ function make_tempdir() {
case $(uname -s) in case $(uname -s) in
Darwin | FreeBSD ) Darwin | FreeBSD )
: "${TMPDIR:=/tmp}" ; : "${TMPDIR:=/tmp}" ;
name=$(mktemp -d -t _stacklib_.XXXXXXXX ) # The full path to the temp directory must be short.
# This is used by blackbox's testing suite to make a fake GNUPGHOME,
# which needs to fit within sockaddr_un.sun_path (see unix(7)).
name=$(mktemp -d -t SO )
;; ;;
Linux | CYGWIN* | MINGW* ) Linux | CYGWIN* | MINGW* )
name=$(mktemp -d) name=$(mktemp -d)