df: fail when the mount list is required but cannot be read
authorBernhard Voelker <mail@bernhard-voelker.de>
Tue, 14 Aug 2012 07:22:13 +0000 (09:22 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 14 Aug 2012 09:34:54 +0000 (11:34 +0200)
commit46afefaaa8ea95b5eb63a62792774cd18738234a
tree4d76b669c082df105808d05af462652923d70258
parenta07dfa9064bf80b4ceea7048c3104495797a6668
df: fail when the mount list is required but cannot be read

* src/df.c (main): Add conditions to fail when the mount list cannot
be read: this includes the cases when a file name argument is given
and any of -a, -l, -t or -x is used.
* doc/coreutils.texi: Document the additional error conditions.
* tests/df/no-mtab-status: Add a new test.
* tests/Makefile.am: Reference the new test.
* NEWS: Mention the fix.
NEWS
doc/coreutils.texi
src/df.c
tests/Makefile.am
tests/df/no-mtab-status [new file with mode: 0755]