diff options
author | Pádraig Brady <P@draigBrady.com> | 2013-12-03 23:36:02 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2013-12-04 13:16:27 +0000 |
commit | 33660b4973baf66423207615bef0d277ca7a5938 (patch) | |
tree | 8cce82054a6ea8f051fe80e2270ae9087b3eb40e /NEWS | |
parent | ec6928ddb5c5571523fadcb4b04b73ccb6fbc6b1 (diff) | |
download | coreutils-33660b4973baf66423207615bef0d277ca7a5938.tar.xz |
df: dereference symlinks to disk device nodes
This is so the matching for the device is done on the canonical name
of the disk node, rather than on the path of the symlink.
In any case the user will generally want to use the symlink target.
* src/df.c (get_disk): Canonicalize the passed file,
before matching against the list of mounted file system devices.
Note we pass the original symlink name to the "file" output field,
as the symlink target is usually available through the "source" field.
* tests/df/df-symlink.sh: Test the dereferencing operation.
* tests/local.mk: Mention the new test.
* NEWS: Mention the fix.
Reported by Ondrej Oprala
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -8,6 +8,10 @@ GNU coreutils NEWS -*- outline -*- mount points. Previously it may have failed to output some mount points. [bug introduced in coreutils-8.21] + df now processes symbolic links to disk device nodes correctly. Previously + df displayed the symlink's device rather than that for the device node. + [This bug was present in "the beginning".] + install now removes the target file if the strip program failed for any reason. Before, that file was left behind, sometimes even with wrong permissions. |