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 #10 received at 50012-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Thimo Emmerich <thimo.emmerich <at> sony.com>
Cc: 50012-done <at> debbugs.gnu.org
Subject: Re: bug#50012: [PATCH] df: Fixed usage of incorrect stat data when
 using automount
Date: Wed, 11 Aug 2021 11:24:03 -0700
[Message part 1 (text/plain, inline)]
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).
[0001-df-fix-bug-with-automounted.patch (text/x-patch, attachment)]

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.