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;