+56
−53
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
* 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>