Subject: Re: bug#50012: [PATCH] df: Fixed usage of incorrect stat data when using automount

From: Thimo Emmerich <[email-masked]>
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).