From 4cdae2b6d4eb5b7a22f57eb6e3b7fbe6e1bc7a6b Mon Sep 17 00:00:00 2001 From: Alexey Dobriyan Date: Wed, 6 Dec 2006 20:40:39 -0800 Subject: [PATCH] --- yaml --- r: 42958 b: refs/heads/master c: 6d4df677f8a60ea6bc0ef1a596c1a3a79b1d4882 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/exec.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 2c3175f4555c..76e99a5f1154 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7d1362c0d05b8543807ab403ac8ce813cab41fa4 +refs/heads/master: 6d4df677f8a60ea6bc0ef1a596c1a3a79b1d4882 diff --git a/trunk/fs/exec.c b/trunk/fs/exec.c index 2092bd207463..add0e03c3ea9 100644 --- a/trunk/fs/exec.c +++ b/trunk/fs/exec.c @@ -1515,7 +1515,8 @@ int do_coredump(long signr, int exit_code, struct pt_regs * regs) ispipe = 1; } else file = filp_open(corename, - O_CREAT | 2 | O_NOFOLLOW | O_LARGEFILE, 0600); + O_CREAT | 2 | O_NOFOLLOW | O_LARGEFILE | flag, + 0600); if (IS_ERR(file)) goto fail_unlock; inode = file->f_dentry->d_inode;