df: fix bug with automounted
commita3c04f8da14f0fe2a0561bf5562032b8ce5dafa9
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 Aug 2021 18:16:05 +0000 (11 11:16 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 Aug 2021 18:22:40 +0000 (11 11:22 -0700)
tree261005ed8e9463709e3caa9933f1284f8bb0a5e6
parenta574283c7ab6f9b506a324f83e28fe9a6064eddd
df: fix bug with automounted

If the command-line argument is automounted, df would use
stat info that became wrong after the following open.
* NEWS: Mention the fix (bug#50012).
* src/df.c (automount_stat_err): New function.
This fixes the hang on fifos in a better way, by using O_NONBLOCK.
(main): Use it.
NEWS
src/df.c