[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug of libcsupport open?



Hi,

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.

Regards,
Wei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rtems.rtems.org/pipermail/rtems-users/attachments/20080822/c0ff554c/attachment.html