From 10dc9d4d17e6880bfdfd253716ce72ec1243227f Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 26 Jun 2000 10:45:52 +0000 Subject: Updates to handle Linux 2.4.0 kernels (kludged around the "none" entries in /proc/mounts, added a hack to make sysinfo work with both old and new kernels). -Erik --- df.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'df.c') diff --git a/df.c b/df.c index ba3227f30..8d457ec37 100644 --- a/df.c +++ b/df.c @@ -103,6 +103,9 @@ extern int df_main(int argc, char **argv) } while ((mountEntry = getmntent(mountTable))) { + if (strcmp(mountEntry->mnt_fsname, "none") == 0) { + continue; + } df(mountEntry->mnt_fsname, mountEntry->mnt_dir); } endmntent(mountTable); -- cgit v1.2.3