bug-coreutils
[Top][All Lists]
Advanced

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

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


From: Paul Eggert
Subject: bug#50012: [PATCH] df: Fixed usage of incorrect stat data when using automount
Date: Wed, 11 Aug 2021 11:24:03 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

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).

Attachment: 0001-df-fix-bug-with-automounted.patch
Description: Text Data


reply via email to

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