diff options
author | Jim Meyering <jim@meyering.net> | 2000-03-02 07:30:36 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-03-02 07:30:36 +0000 |
commit | 5624900715d76eeacbdeb0e51af51c0ccd1cb03c (patch) | |
tree | 7aa66205f3dda5d55d7b90895ee9cb976f6e10b1 | |
parent | de85b5f902cda0cf43f3971bb92d1b6a67c44456 (diff) | |
download | coreutils-5624900715d76eeacbdeb0e51af51c0ccd1cb03c.tar.xz |
(show_point): Ignore shortcuts based on path
prefixes that are loop file system mount points, since they
yield undesirable output.
-rw-r--r-- | src/df.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -507,7 +507,7 @@ show_point (const char *point, const struct stat *statp) { for (me = mount_list; me; me = me->me_next) { - if (STREQ (me->me_mountdir, point)) + if (STREQ (me->me_mountdir, point) && !STREQ (me->me_type, "lofs")) { /* Prefer non-dummy entries. */ if (! me->me_dummy) @@ -599,7 +599,7 @@ show_point (const char *point, const struct stat *statp) } } - if (best_match) + if (best_match && !STREQ (best_match->me_type, "lofs")) { me = best_match; goto show_me; |