]> git.ipfire.org Git - thirdparty/coreutils.git/commit
ls: avoid triggering automounts
authorRohan Sable <rsable@redhat.com>
Mon, 7 Mar 2022 14:14:13 +0000 (14:14 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 7 Mar 2022 23:26:42 +0000 (23:26 +0000)
commit85c975df2c25bd799370b04bb294e568e001102f
tree83ff610524f7159561c57539be1898d98a007623
parent3f61958495c156446e375b8cf3ecaea2d73e4d51
ls: avoid triggering automounts

statx() has different defaults wrt automounting
compared to stat() or lstat(), so explicitly
set the AT_NO_AUTOMOUNT flag to suppress that behavior,
and avoid unintended operations or potential errors.

* src/ls.c (do_statx): Pass AT_NO_AUTOMOUNT to avoid this behavior.
* NEWS: Mention the change in behavior.
Fixes https://bugs.gnu.org/54286

Signed-off-by: Rohan Sable <rsable@redhat.com>
NEWS
src/ls.c