fs: Fix O_TRUNC usage
commit99e2e533bfc2d798e442723e409785743039c5b8
authorLuiz Fernando N. Capitulino <lcapitulino@gmail.com>
Mon, 10 Dec 2007 12:27:03 +0000 (10 10:27 -0200)
committerLuiz Fernando N. Capitulino <lcapitulino@gmail.com>
Mon, 10 Dec 2007 12:27:03 +0000 (10 10:27 -0200)
treef79eb8e9ca4ffc06a19305131007c6d871834ddb
parent401a7a24b48e3d4fee81297fe5be364600c10923
fs: Fix O_TRUNC usage

Linux's open() manpage says that O_TRUNC is only valid if the file
was opened for writing.

Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@gmail.com>
src/fs/serv.c