[Bug 1839] call read with a write only file descriptor should fall with EBADF
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Mon Jul 18 19:41:43 UTC 2011
https://www.rtems.org/bugzilla/show_bug.cgi?id=1839
--- Comment #1 from Joel Sherrill <joel.sherrill at oarcorp.com> 2011-07-18 14:41:42 CDT ---
Created attachment 1226
--> https://www.rtems.org/bugzilla/attachment.cgi?id=1226
Patch for Review
This should address this issue. Please review and verify it is OK.
Also please grep "rtems_libio_check_permissions" in libcsupport/src and verify
it is always correctly used to return the expected status.
rtems_libio_check_permissions - always returns EINVAL
rtems_libio_check_permissions_with_error - takes third parameter for errno
FWIW this is a weird POSIX-ism. I checked another use of
rtems_libio_check_permissions() and you could return EBADF or EINVAL.
Thanks.
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list