mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-26 18:16:26 +00:00
O_TRUNC open shouldn't fail after file truncation
* take truncate logics into a helper (handle_truncate()) * rip it out of may_open() * call it from the only caller of may_open() that might pass O_TRUNC * and do that after we'd finished with opening. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
85a17f552d
commit
7715b52122
1 changed files with 56 additions and 53 deletions
109
fs/namei.c
109
fs/namei.c
Loading…
Add table
Add a link
Reference in a new issue