]> git.ipfire.org Git - thirdparty/coreutils.git/commit
df: ignore non file system entries in /proc/mounts
authorPádraig Brady <P@draigBrady.com>
Mon, 12 May 2014 13:49:13 +0000 (14:49 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 13 May 2014 22:23:30 +0000 (23:23 +0100)
commitcbfb34c7d32e888b39e03a51a374ed664e9fa31b
treeff66b3e76041157c883fcc9db8f3f1dfbed22ce2
parentfb902297f536df060ff10ef06bb8fe6cfe0c845e
df: ignore non file system entries in /proc/mounts

Linux with network namespaces contains entries in /proc/mounts like:
  proc net:[4026532464] proc rw,nosuid,nodev,noexec,relatime 0 0
resulting in a failure to stat 'net:[...]', inducing a warning
and an exit with failure status.

* src/df.c (get_dev): Ignore all relative mount points.
* tests/df/skip-duplicates.sh: Add an entry to test relative dirs.
src/df.c
tests/df/skip-duplicates.sh