]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(show_point): Ignore shortcuts based on path
authorJim Meyering <jim@meyering.net>
Thu, 2 Mar 2000 07:30:36 +0000 (07:30 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 2 Mar 2000 07:30:36 +0000 (07:30 +0000)
prefixes that are loop file system mount points, since they
yield undesirable output.

src/df.c

index 885c26264fd6fbf647d56de7e20c137b418ee43f..794e12b5ce95173e2b9d149debd63ae5e1d96be1 100644 (file)
--- a/src/df.c
+++ b/src/df.c
@@ -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;