Bug of libcsupport open?

Wei Shen cquark at gmail.com
Fri Aug 22 09:09:58 UTC 2008


If "iop->handlers->open_h" returns an error, "open" will call
"rtems_set_errno_and_return_minus_one( rc )" which sets "errno" to "rc",
where "rc" is the return value of "open_h".
However, the "open_h" handler implemented by each filesystem usually already
sets "errno" and returns only -1 at errors, so "open" will override "errno"
with -1 which is not a valid errno.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20080822/c0ff554c/attachment.html>

More information about the users mailing list