summaryrefslogtreecommitdiff
path: root/init.cfg
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-04-05 18:21:38 +0100
committerPádraig Brady <P@draigBrady.com>2015-04-13 09:20:55 +0100
commit1b1c40e1d6f8cf30b6c7c9d31bbddbc3d5cc72e6 (patch)
treeb6f887d9e98343fc3e0389de18dc7b4abc30b51e /init.cfg
parent74bf6670eb54377f3aec98ef24a3b5f45e3ac554 (diff)
downloadcoreutils-1b1c40e1d6f8cf30b6c7c9d31bbddbc3d5cc72e6.tar.xz
df: fix --local hanging with inaccessible remote mounts
* src/df.c (filter_mount_list): With -l, avoid stating remote mounts. * init.cfg: Avoid test hangs with inaccessible remote mounts. * tests/df/no-mtab-status.sh: Skip with inaccessible remote mounts. * tests/df/skip-rootfs.sh: Likewise. * tests/df/total-verify.sh: Likewise. * NEWS: Mention the bug fix. Reported at http://bugzilla.redhat.com/1199679
Diffstat (limited to 'init.cfg')
-rw-r--r--init.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.cfg b/init.cfg
index ada1dcee4..3beba5a9a 100644
--- a/init.cfg
+++ b/init.cfg
@@ -79,7 +79,7 @@ is_local_dir_()
require_mount_list_()
{
local mount_list_fail='cannot read table of mounted file systems'
- df 2>&1 | grep -F "$mount_list_fail" >/dev/null &&
+ df --local 2>&1 | grep -F "$mount_list_fail" >/dev/null &&
skip_ "$mount_list_fail"
}