Tom Ivar Helbekkmo <tih@kpnQwest.no> writes:
> I can verify, that with NetBSD-current on sparc, your test code works
> the way you want it to on local disk, but fails (in the way you've
> observed), if the target file is on an NFS-mounted file system.
FWIW, the test program succeeds (no error) using HPUX 10.20 and a couple
different Linux flavors as either client or server. So I'm still
thinking that it's NetBSD-specific. It would be useful to try it on
some other BSD derivatives though ...
regards, tom lane