diff options
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; |