In message <[EMAIL PROTECTED]>, Bernd Walter writes: >> Is there any reason we don't want to truncate the file? Does O_TRUNC >> not work well of the file is a tape device or something? > >I don't expect O_TRUNK to work on devices such tapes and disks.
Well, it won't achieve anything on tapes or disk devices, but it should be completely harmless to add the O_TRUNC flag. The current behaviour is likely to be unexpected and cause confusion so it might as well be changed. I'll commit this later unless someone can think of a good reason not to. Ian To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message