From: Lubomir Rintel Date: Mon, 28 Nov 2016 15:33:04 +0000 (+0100) Subject: test-conf: don't create the setuid copy in /tmp X-Git-Tag: 0.23.3~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8046370a9d0c8333d84a1294c302d21634729cc8;p=p11-kit test-conf: don't create the setuid copy in /tmp The temporary directory is often mounted with nosuid, thus whatever runs from there doesn't get AT_SECURE in auxv. --- diff --git a/common/test.c b/common/test.c index 9605d03..86c8c52 100644 --- a/common/test.c +++ b/common/test.c @@ -501,7 +501,7 @@ p11_test_copy_setgid (const char *input) return NULL; } - path = strdup ("/tmp/test-setgid.XXXXXX"); + path = strdup (BUILDDIR "/test-setgid.XXXXXX"); assert (path != NULL); fd = mkstemp (path);