From c89951c3dbe920512096f78a45ae260261e6192d Mon Sep 17 00:00:00 2001 From: Tom Limoncelli Date: Mon, 20 Feb 2017 12:15:05 -0500 Subject: [PATCH] make_tempdir must create shorter paths. --- bin/_stack_lib.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/_stack_lib.sh b/bin/_stack_lib.sh index d2edd36..b51b138 100755 --- a/bin/_stack_lib.sh +++ b/bin/_stack_lib.sh @@ -122,7 +122,10 @@ function make_tempdir() { case $(uname -s) in Darwin | FreeBSD ) : "${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* ) name=$(mktemp -d)