mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
restore: Don't use +x permission for .out files
We don't execute them anymore. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
@@ -852,7 +852,7 @@ static int prepare_and_sigreturn(int pid)
|
|||||||
sprintf(path, FMT_FNAME_CORE_OUT, pid);
|
sprintf(path, FMT_FNAME_CORE_OUT, pid);
|
||||||
unlink(path);
|
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) {
|
if (fd_new < 0) {
|
||||||
pr_perror("%d: Can't open new image\n", pid);
|
pr_perror("%d: Can't open new image\n", pid);
|
||||||
return 1;
|
return 1;
|
||||||
|
Reference in New Issue
Block a user