]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
o According to POSIX, the result of ftruncate(2) is unspecified
authorMaxim Konovalov <maxim@FreeBSD.org>
Wed, 31 May 2006 13:15:29 +0000 (13:15 +0000)
committerMaxim Konovalov <maxim@FreeBSD.org>
Wed, 31 May 2006 13:15:29 +0000 (13:15 +0000)
commit3593da9e81dfa63c779fb14253b6b090a56d49c2
treeb50af0afae864b921f69aa402b1755f290a63325
parentc712f1ef5b7adb978506b233593fce2fd3d7ba83
o According to POSIX, the result of ftruncate(2) is unspecified
for file types other than VREG, VDIR and shared memory objects.
We already handle VREG, VLNK and VDIR cases.  Silently ignore
truncate requests for all the rest.  Adjust comments.

PR: kern/98064
Submitted by: bde
Security: local DoS
Regress. test: regression/fifo/fifo_misc
MFC after: 2 weeks
sys/ufs/ufs/ufs_vnops.c