diff --git a/tests/sys/socket/unix_bindconnect_test.c b/tests/sys/socket/unix_bindconnect_test.c index 079dc4d1cae4..a2c3184d8c8e 100644 --- a/tests/sys/socket/unix_bindconnect_test.c +++ b/tests/sys/socket/unix_bindconnect_test.c @@ -303,7 +303,7 @@ main(void) char directory_path[PATH_MAX]; int error; - strlcpy(directory_path, "/tmp/unix_bind.XXXXXXX", PATH_MAX); + strlcpy(directory_path, "unix_bind.XXXXXXX", PATH_MAX); if (mkdtemp(directory_path) == NULL) err(-1, "mkdtemp"); push_path(directory_path); diff --git a/tests/sys/socket/unix_gc_test.c b/tests/sys/socket/unix_gc_test.c index 8cae2d97a94e..294c60e82f78 100644 --- a/tests/sys/socket/unix_gc_test.c +++ b/tests/sys/socket/unix_gc_test.c @@ -758,7 +758,7 @@ main(int argc, char *argv[]) int serrno; pid_t pid; - strlcpy(dpath, "/tmp/unpgc.XXXXXXXX", sizeof(dpath)); + strlcpy(dpath, "unpgc.XXXXXXXX", sizeof(dpath)); if (mkdtemp(dpath) == NULL) err(-1, "mkdtemp");