[PATCH] aio_fsync: fix the access mode check
Pino Toscano
toscano.pino@tiscali.it
Fri Sep 28 16:08:00 GMT 2012
Hi,
the file access mode check in the pthread aio_fsync implementation
wrongly uses the O_* constants, based on the way they are implemented on
Linux (when O_RDONLY is 0). Attached there is a patch to properly use
O_ACCMODE and O_RDONLY for the check.
I was able to successfully test it on Linux/x86_64 and Hurd/x86.
Thanks,
--
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-aio_fsync-accessmode.diff
Type: text/x-patch
Size: 637 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120928/a9df73a3/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120928/a9df73a3/attachment.sig>
More information about the Libc-alpha
mailing list