Mail Archives: cygwin/2002/05/08/15:39:17
I was trying to track down a problem I was having with grep not recursing
subdirectories and this appears to be the problem:
from grep.c in grep-2.5-1:
in the function grepfile (char const *file, struct stats *stats) at
line 911:
while ((desc = open (file, O_RDONLY)) < 0 && errno == EINTR)
continue;
if (desc < 0)
{
int e = errno;
if (is_EISDIR (e, file) && directories == RECURSE_DIRECTORIES)
{
if (stat (file, &stats->stat) != 0)
{
error (0, errno, "%s", file);
return 1;
}
return grepdir (file, stats);
}
the call to open is leaving a 13 (EACCESS) instead of 21 (EISDIR) in errno
so the call to grepdir doesn't happen.
Platform is Windows 98, cygwin1.dll is version:1.3.10
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -