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 /df.c | |
parent | 8a24a6783af7a0d54b1f2ebcda5b07757bd19c99 (diff) | |
download | busybox-w32-10dc9d4d17e6880bfdfd253716ce72ec1243227f.tar.gz busybox-w32-10dc9d4d17e6880bfdfd253716ce72ec1243227f.tar.bz2 busybox-w32-10dc9d4d17e6880bfdfd253716ce72ec1243227f.zip |
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 'df.c')
-rw-r--r-- | df.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -103,6 +103,9 @@ extern int df_main(int argc, char **argv) | |||
103 | } | 103 | } |
104 | 104 | ||
105 | while ((mountEntry = getmntent(mountTable))) { | 105 | while ((mountEntry = getmntent(mountTable))) { |
106 | if (strcmp(mountEntry->mnt_fsname, "none") == 0) { | ||
107 | continue; | ||
108 | } | ||
106 | df(mountEntry->mnt_fsname, mountEntry->mnt_dir); | 109 | df(mountEntry->mnt_fsname, mountEntry->mnt_dir); |
107 | } | 110 | } |
108 | endmntent(mountTable); | 111 | endmntent(mountTable); |