bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: grep-2.5.1: bug ?? --


From: Paul Townsend
Subject: Re: grep-2.5.1: bug ?? --
Date: Sat, 19 Apr 2003 09:06:34 -0500

On Mon, 14 Apr 2003 12:23:01 -0400, Paul Jarc wrote:
>Paul Townsend <address@hidden> wrote:
>> On Thu, 10 Apr 2003 11:40:00 -0400, Paul Jarc wrote:
>>> Maybe this would be best:
>>>   if (devices == SKIP_DEVICES && !S_ISREG(stats->stat.st_mode))
>>
>> I like it a lot except that can't the file can be a directory?
>
>Ok, then:
>  if (devices == SKIP_DEVIES && !S_ISREG(stats->stat.st_mode) &&
>      !S_ISDIR(stats->stat.st_mode))
>

Go for it.  Actually, I think that entire section of code can be
replaced by the above.

--  Thanks,
--    Paul//aab




reply via email to

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