diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 1999-11-10 23:13:02 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 1999-11-10 23:13:02 +0000 |
commit | fe675f24f8afae61702b3e2aee9af34dd84a4d5b (patch) | |
tree | 3e448e6550da52d2709e5f52fbae56e9df9462cc /umount.c | |
parent | 51abdb45dd5418cdf8355e5c314307771f9b8c37 (diff) | |
download | busybox-w32-fe675f24f8afae61702b3e2aee9af34dd84a4d5b.tar.gz busybox-w32-fe675f24f8afae61702b3e2aee9af34dd84a4d5b.tar.bz2 busybox-w32-fe675f24f8afae61702b3e2aee9af34dd84a4d5b.zip |
Updates to usage, and made tar work.
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@94 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'umount.c')
-rw-r--r-- | umount.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -29,8 +29,8 @@ | |||
29 | #include <errno.h> | 29 | #include <errno.h> |
30 | 30 | ||
31 | static const char umount_usage[] = | 31 | static const char umount_usage[] = |
32 | "Usage: umount [flags] filesystem|directory\n" | 32 | "Usage: umount [flags] filesystem|directory\n\n" |
33 | "Optional Flags:\n" | 33 | "Flags:\n" |
34 | "\t-a:\tUnmount all file systems" | 34 | "\t-a:\tUnmount all file systems" |
35 | #ifdef BB_MTAB | 35 | #ifdef BB_MTAB |
36 | " in /etc/mtab\n\t-n:\tDon't erase /etc/mtab entries\n" | 36 | " in /etc/mtab\n\t-n:\tDon't erase /etc/mtab entries\n" |
@@ -108,7 +108,7 @@ umount_main(int argc, char** argv) | |||
108 | } | 108 | } |
109 | 109 | ||
110 | /* Parse any options */ | 110 | /* Parse any options */ |
111 | while (argc-- > 0 && **(argv++) == '-') { | 111 | while (--argc > 0 && **(++argv) == '-') { |
112 | while (*++(*argv)) switch (**argv) { | 112 | while (*++(*argv)) switch (**argv) { |
113 | case 'a': | 113 | case 'a': |
114 | umountAll = TRUE; | 114 | umountAll = TRUE; |