]> granicus.if.org Git - p11-kit/commitdiff
test-conf: don't create the setuid copy in /tmp
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 28 Nov 2016 15:33:04 +0000 (16:33 +0100)
committerDaiki Ueno <ueno@gnu.org>
Tue, 29 Nov 2016 15:25:47 +0000 (16:25 +0100)
The temporary directory is often mounted with nosuid, thus whatever runs
from there doesn't get AT_SECURE in auxv.

common/test.c

index 9605d03a93c727bd2dcc9135c30009a8a420e0e7..86c8c52b50c5fe145eed00f67e92dfb5b7d48c18 100644 (file)
@@ -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);