diff --git a/NEWS b/NEWS index af6596b06..a3442c5dd 100644 --- a/NEWS +++ b/NEWS @@ -75,6 +75,9 @@ GNU coreutils NEWS -*- outline -*- seek_bytes are therefore obsolescent and are no longer documented, though they still work. + ls no longer tries to automount files, reverting to the behavior + before the statx() call was introduced in coreutils-8.32. + timeout --foreground --kill-after=... will now exit with status 137 if the kill signal was sent, which is consistent with the behavior when the --foreground option is not specified. This allows users to diff --git a/src/ls.c b/src/ls.c index 1930e4abb..255789061 100644 --- a/src/ls.c +++ b/src/ls.c @@ -1177,7 +1177,7 @@ do_statx (int fd, char const *name, struct stat *st, int flags, { struct statx stx; bool want_btime = mask & STATX_BTIME; - int ret = statx (fd, name, flags, mask, &stx); + int ret = statx (fd, name, flags | AT_NO_AUTOMOUNT, mask, &stx); if (ret >= 0) { statx_to_stat (&stx, st);