From 3e1eedd1a1754ecc86affdbd873900213c172bab Mon Sep 17 00:00:00 2001 From: erik Date: Thu, 13 Apr 2000 01:18:56 +0000 Subject: Upates to include copyright 2000 to everything -Erik git-svn-id: svn://busybox.net/trunk/busybox@447 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- df.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'df.c') diff --git a/df.c b/df.c index 331ef2d49..c38720454 100644 --- a/df.c +++ b/df.c @@ -2,7 +2,7 @@ /* * Mini df implementation for busybox * - * Copyright (C) 1999 by Lineo, inc. + * Copyright (C) 1999,2000 by Lineo, inc. * Written by Erik Andersen , * based on original code by (I think) Bruce Perens . * @@ -28,9 +28,8 @@ #include #include -static const char df_usage[] = "df [filesystem ...]\n" - - "\n" "\tPrint the filesystem space used and space available.\n"; +static const char df_usage[] = "df [filesystem ...]\n\n" + "Print the filesystem space used and space available.\n"; extern const char mtab_file[]; /* Defined in utility.c */ @@ -76,6 +75,9 @@ extern int df_main(int argc, char **argv) struct mntent *mountEntry; int status; + if (**(argv + 1) == '-') { + usage(df_usage); + } while (argc > 1) { if ((mountEntry = findMountPoint(argv[1], mtab_file)) == 0) { fprintf(stderr, "%s: can't find mount point.\n", argv[1]); -- cgit v1.2.3-55-g6feb