[Top][All Lists]

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

Re: Grep --directories option

From: Alfred M. Szmidt
Subject: Re: Grep --directories option
Date: Fri, 30 May 2003 14:08:49 +0200

   The code is equivalent to this:

     if (! fillbuf (save, stats))
         if (! is_EISDIR (errno, file) && ! suppress_errors)
           error (filename, errno);

   This indeed is a bug as it ignores all errors related to reading dirs.
   If there is a disk error while reading dir on GNU/Hurd, the error
   is not reported.

What about adding an check when trying to open the file/directory?
For example, check if one can read a directory, if one can continue as
normal, if not report the error that was recived.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]