Truncating an open file under BSD 4.3

Chris Torek chris at mimsy.UUCP
Wed Aug 3 11:09:00 AEST 1988


-In article <12684 at mimsy.UUCP> I wrote that the sequence
->	open
->	write (moves seek pointer)
->	ftruncate
->	write
->will create holes, since the second `write' is not at the beginning

In article <26556 at oliveb.olivetti.com> jerry at olivey.olivetti.com
(Jerry Aguirre) notes:
-What is interesting is that even if the open file has been placed in
-FAPPEND mode there will still be holes.  I view this as a bug.

Fixed in 4.3BSD-tahoe (if not earlier).
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.unix.questions mailing list