Commit f139959e authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

restore: Don't use +x permission for .out files

We don't execute them anymore.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
parent 7ce27610
......@@ -852,7 +852,7 @@ static int prepare_and_sigreturn(int pid)
sprintf(path, FMT_FNAME_CORE_OUT, pid);
unlink(path);
fd_new = open(path, O_RDWR | O_CREAT | O_EXCL, 0700);
fd_new = open(path, O_RDWR | O_CREAT | O_EXCL, CR_FD_PERM);
if (fd_new < 0) {
pr_perror("%d: Can't open new image\n", pid);
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