Brand, new version of cut. This fixes the bugs in the old cut, is smaller, and
[oweals/busybox.git] / df.c
diff --git a/df.c b/df.c
index 8d457ec37b118dc1db5a46b89c7d50f40eb431ee..714c799654c03ccf329f3a0c72622cf253f0c30c 100644 (file)
--- a/df.c
+++ b/df.c
 #include <sys/stat.h>
 #include <sys/vfs.h>
 
-static const char df_usage[] = "df [filesystem ...]\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
-       "\nPrint the filesystem space used and space available.\n"
-#endif
-       ;
-
 extern const char mtab_file[]; /* Defined in utility.c */
 
 static int df(char *device, const char *mountPoint)
@@ -82,7 +76,7 @@ extern int df_main(int argc, char **argv)
                }
                while (argc > 1) {
                        if ((mountEntry = findMountPoint(argv[1], mtab_file)) == 0) {
-                               fprintf(stderr, "%s: can't find mount point.\n", argv[1]);
+                               errorMsg("%s: can't find mount point.\n", argv[1]);
                                exit(FALSE);
                        }
                        status = df(mountEntry->mnt_fsname, mountEntry->mnt_dir);
@@ -103,9 +97,6 @@ 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);