From: Jim Meyering Date: Tue, 26 Sep 1995 04:18:55 +0000 (+0000) Subject: (show_point): Ignore mtab entries with either X-Git-Tag: v4.5.1~12370 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=744393f0f40f58936a0842111585de57c94fcfc3;p=thirdparty%2Fcoreutils.git (show_point): Ignore mtab entries with either nonexistent mount points or with inconsistent device number. From Eirik Fuller . --- diff --git a/src/df.c b/src/df.c index 3de9a62e10..a6b0fe73e0 100644 --- a/src/df.c +++ b/src/df.c @@ -352,6 +352,10 @@ show_point (point, statp) if (statp->st_dev == me->me_dev) { + /* Skip bogus mtab entries. */ + if (stat (me->me_mountdir, &disk_stats) != 0 || + disk_stats.st_dev != me->me_dev) + continue; show_dev (me->me_devname, me->me_mountdir, me->me_type); return; }