GNU bug report logs - #50012
[PATCH] df: Fixed usage of incorrect stat data when using automount

Previous Next

Package: coreutils;

Reported by: Thimo Emmerich <thimo.emmerich <at> sony.com>

Date: Wed, 11 Aug 2021 16:01:01 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 50012-done <at> debbugs.gnu.org (full text, mbox):

From: Thimo Emmerich <thimo.emmerich <at> sony.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 50012-done <at> debbugs.gnu.org
Subject: Re: bug#50012: [PATCH] df: Fixed usage of incorrect stat data when
 using automount
Date: Thu, 12 Aug 2021 09:16:23 +0200
Thank you for taking care. Your fix seems more elaborated and works for me.

On 11.08.21 20:24, Paul Eggert wrote:
> On 8/11/21 8:59 AM, Thimo Emmerich wrote:
>
>> Since the stat in [2]/df.c, line 1775 is necessary for the following 
>> fifo evaluation, it seems to be necessary to update the stat 
>> information after a successful open.
>
> Thanks for reporting the bug. I installed the attached. It differs a 
> bit from what you proposed in that it prefers fstat to stat, as fstat 
> should be a bit faster and should avoid some unlikely races (there are 
> many more races, but one fix at a time).





This bug report was last modified 3 years and 321 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.