[PATCH] Fix errno codes set by opendir() in case of problems with the path argument
Oleg Kravtsov
Oleg.Kravtsov@oktetlabs.ru
Mon Mar 3 18:35:00 GMT 2014
Currently cygwin has a problem with errno code set by opendir()
function. It always sets errno to ENOENT.
After applying the path opendir() sets errno to 'ENAMETOOLONG' when path
or a path component is too long,
'ELOOP' when a loop of symbolic links exits in the path.
Best regards,
Oleg
2014-02-18 Oleg Kravtsov <Oleg.Kravtsov@oktetlabs.ru>
* dir.cc (opendir): Set errno code depending on the type of an error
instead of always setting it to ENOENT.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opendir_errno_fix.patch
Type: text/x-diff
Size: 858 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20140303/2265c681/attachment.bin>
More information about the Cygwin-patches
mailing list