diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-06-26 10:45:52 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-06-26 10:45:52 +0000 |
commit | 79e4e178ae733f43f6f6b914abe9c9f6c7b54ee6 (patch) | |
tree | f3c2aa6ab3dadf1b4bf710c7957e72faddebd75f /df.c | |
parent | 073e4a817c3e656f3bf46b3b8e0c874c2cffbe5d (diff) | |
download | busybox-w32-79e4e178ae733f43f6f6b914abe9c9f6c7b54ee6.tar.gz busybox-w32-79e4e178ae733f43f6f6b914abe9c9f6c7b54ee6.tar.bz2 busybox-w32-79e4e178ae733f43f6f6b914abe9c9f6c7b54ee6.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
git-svn-id: svn://busybox.net/trunk/busybox@701 69ca8d6d-28ef-0310-b511-8ec308f3f277
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); |