Don't use /tmp for temporary files; this violates ATF/kyuas sandbox
This commit is contained in:
parent
6777749baf
commit
4f3aa5e79f
@ -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);
|
||||
|
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user