2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 05:48:05 +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:
Cyrill Gorcunov 2011-11-23 01:22:37 +04:00
parent 7ce2761007
commit f139959ead

View File

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