From 744393f0f40f58936a0842111585de57c94fcfc3 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 26 Sep 1995 04:18:55 +0000 Subject: (show_point): Ignore mtab entries with either nonexistent mount points or with inconsistent device number. From Eirik Fuller . --- src/df.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/df.c b/src/df.c index 3de9a62e1..a6b0fe73e 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; } -- cgit v1.2.3-70-g09d2