bug-grep
[Top][All Lists]
Advanced

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

Re: [bug-grep] [patch] getting '--devices=skip' to work


From: Stepan Kasal
Subject: Re: [bug-grep] [patch] getting '--devices=skip' to work
Date: Thu, 18 Nov 2004 08:05:36 +0100
User-agent: Mutt/1.4.1i

Hello,

On Wed, Nov 17, 2004 at 11:16:00PM -0400, Tony Abou-Assaleh wrote:
> By just looking at the patch (not tested), is there a reason for changing
> 'fstat' to 'stat' in 'fstat (fd, &stats->stat)'?

sure there is: the problem was caused by open, so the file has to be stated
before the open.  Without open, you have no fd to pass to fstat(), so you
have to use stat().

Yours,
        Stepan




reply via email to

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