CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2009/01/18 06:54:27
Modified files:
sys/nfs : nfs_serv.c
Log message:
Perform the same access enforcements for set attributes
as for open/read/write etc, that is assume that the file
as already been opened proper, this fixes an ancient
ftruncate bug, that is if ftruncate was called on a file
with no write modes, we'd return EACCES, this breaks posixy
behavior. however, for e.g. truncate() we'll return EACCESS
as we should.
Diff from PR5880 by mickey.
I had forgotten about this PR, and the fix but niklas@ ran
into similar issues which prompted another review of this.
OK kettenis@