diff options
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1511,7 +1511,7 @@ int do_coredump(long signr, int exit_code, struct pt_regs * regs) | |||
1511 | goto close_fail; | 1511 | goto close_fail; |
1512 | if (!file->f_op->write) | 1512 | if (!file->f_op->write) |
1513 | goto close_fail; | 1513 | goto close_fail; |
1514 | if (do_truncate(file->f_dentry, 0) != 0) | 1514 | if (do_truncate(file->f_dentry, 0, file) != 0) |
1515 | goto close_fail; | 1515 | goto close_fail; |
1516 | 1516 | ||
1517 | retval = binfmt->core_dump(signr, regs, file); | 1517 | retval = binfmt->core_dump(signr, regs, file); |