Don't use /tmp for temporary files; this violates ATF/kyuas sandbox

This commit is contained in:
ngie 2015-04-16 00:44:59 +00:00
parent 6777749baf
commit 4f3aa5e79f
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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");