Commit e5a91658 authored by Pavel Emelyanov's avatar Pavel Emelyanov

zdtm: Do not create dangling executables

Otherwise they are left after test and make zdtm.py list thing
these files are tests too.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 9a366728
......@@ -64,13 +64,13 @@ int main(int argc, char *argv[])
return 1;
}
if ((fd1 = open(TEST_FILE_SRC, O_WRONLY | O_CREAT | O_TRUNC) < 0)) {
if ((fd1 = open(TEST_FILE_SRC, O_WRONLY | O_CREAT | O_TRUNC, 0600) < 0)) {
pr_perror("touching %s", TEST_FILE_SRC);
return 1;
}
close(fd1);
if ((fd2 = open(TEST_FILE_DST, O_WRONLY | O_CREAT | O_TRUNC) < 0)) {
if ((fd2 = open(TEST_FILE_DST, O_WRONLY | O_CREAT | O_TRUNC, 0600) < 0)) {
pr_perror("touching %s", TEST_FILE_DST);
return 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment