passthrough:truncate(): work on file descriptor when possible
authorNikolaus Rath <Nikolaus@rath.org>
Fri, 7 Apr 2017 23:27:59 +0000 (16:27 -0700)
committerNikolaus Rath <Nikolaus@rath.org>
Fri, 7 Apr 2017 23:40:15 +0000 (16:40 -0700)
commit76218eb4614146b52f59563e85e6b5971acbfe92
tree045af21a520f7d2d4596b25707f587963dee2e3e
parentdb1c6adb18950c188fbf20247245eef11ad47b30
passthrough:truncate(): work on file descriptor when possible

This allows truncating an open file even if write permission
was removed after open() (which is the expected behavior).
example/passthrough.c