truncate: use O_WRONLY|O_NONBLOCK
authorMike Frysinger <vapier@gentoo.org>
Wed, 13 Jan 2016 18:30:20 +0000 (13:30 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 13 Jan 2016 18:30:20 +0000 (13:30 -0500)
commit6a70db85cfc2aba89fc23edf426a47630f497eb8
tree4a22fe6e92a21daf3fc447a7c40156143313f4d0
parente111a1640494fe87fc913f94fae3bb805de0fc99
truncate: use O_WRONLY|O_NONBLOCK

This matches coreutils behavior.  We don't read the fd, and truncation
does not need blocking.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
coreutils/truncate.c