diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-06-26 10:45:52 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-06-26 10:45:52 +0000 |
commit | 10dc9d4d17e6880bfdfd253716ce72ec1243227f (patch) | |
tree | f3c2aa6ab3dadf1b4bf710c7957e72faddebd75f /coreutils | |
parent | 8a24a6783af7a0d54b1f2ebcda5b07757bd19c99 (diff) |
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
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/df.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/coreutils/df.c b/coreutils/df.c index ba3227f30..8d457ec37 100644 --- a/coreutils/df.c +++ b/coreutils/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); |