diff options
author | dg <dg@FreeBSD.org> | 1994-09-02 10:23:43 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-09-02 10:23:43 +0000 |
commit | 70a7b53e066a66692fa03c5ba75393c4fda4bd24 (patch) | |
tree | 03834478d06cab332efebe8dddf79fd94ed78f3a /sys/kern/kern_synch.c | |
parent | 28c9f84238cb7b612ca7daf91875168e7453dbd6 (diff) | |
download | FreeBSD-src-70a7b53e066a66692fa03c5ba75393c4fda4bd24.zip FreeBSD-src-70a7b53e066a66692fa03c5ba75393c4fda4bd24.tar.gz |
Disallow truncating to negative file sizes. Doing so causes ffs_truncate()
and perhaps other fs truncate's to go crazy and panic the machine or worse.
This fixes the truncate bug reported by Michael Class.
Diffstat (limited to 'sys/kern/kern_synch.c')
0 files changed, 0 insertions, 0 deletions