summaryrefslogtreecommitdiff
path: root/umount.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>1999-11-10 23:13:02 +0000
committerEric Andersen <andersen@codepoet.org>1999-11-10 23:13:02 +0000
commitd73dc5b07390fb90e7f605871c993a28eedf1d46 (patch)
tree3e448e6550da52d2709e5f52fbae56e9df9462cc /umount.c
parent84d85680712573c7a8bd7d0491c3f944dc08ad10 (diff)
downloadbusybox-w32-d73dc5b07390fb90e7f605871c993a28eedf1d46.tar.gz
busybox-w32-d73dc5b07390fb90e7f605871c993a28eedf1d46.tar.bz2
busybox-w32-d73dc5b07390fb90e7f605871c993a28eedf1d46.zip
Updates to usage, and made tar work.
-Erik
Diffstat (limited to 'umount.c')
-rw-r--r--umount.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/umount.c b/umount.c
index 89c59f9ee..0d105d9c1 100644
--- a/umount.c
+++ b/umount.c
@@ -29,8 +29,8 @@
29#include <errno.h> 29#include <errno.h>
30 30
31static const char umount_usage[] = 31static 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;