From f139959ead64f70a3ea3d2ce21909a86783ae6d0 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Wed, 23 Nov 2011 01:22:37 +0400 Subject: [PATCH] restore: Don't use +x permission for .out files We don't execute them anymore. Signed-off-by: Cyrill Gorcunov --- cr-restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cr-restore.c b/cr-restore.c index ab64d96ec..e1ed68bfb 100644 --- a/cr-restore.c +++ b/cr-restore.c @@ -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;