On Sun, Dec 28, 2008 at 05:46:39AM +0100, Mitar wrote: > Hi! > > On Sun, Dec 28, 2008 at 5:10 AM, Mel > <fbsd.questi...@rachie.is-a-geek.net> wrote: > > open(2) will succeed but write(2) will fail with EBADF as documented (and I > > verified this behavior). Still no EACCES as you and the bugreporter are > > seeing. > > Where is documented that write would fail if file is opened only with > O_APPEND? Just O_APPEND should also open file for writing as appending > is also writing. It cannot be used without "write" semantics so file > has to be open also for writing.
If I recall correctly, this behaviour has been standard on UNIX-like OS's for a *very* long time now. If you are seeing a write allowed with just O_APPEND on Linux, it would very likely be a Linux only "feature". Cheers. -- Jonathan Chen <j...@chen.org.nz> ---------------------------------------------------------------------- The Internet: an empirical test of the idea that a million monkeys banging on a million keyboards can produce Shakespeare _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"