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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user