try at fixing bug #737

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18514 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2006-08-16 10:50:03 +00:00
parent f96cab8aa3
commit 3bb475bdcb

View File

@ -45,16 +45,23 @@ main(int argc, char **argv)
while (*++argv) {
char *arg = *argv;
argc--;
if (*arg != '-')
break;
if (!strcmp(++arg, "ro") && (flags & B_MOUNT_READ_ONLY) == 0)
flags |= B_MOUNT_READ_ONLY;
else if (!strcmp(arg, "t") && fs == NULL)
else if (!strcmp(arg, "t") && fs == NULL) {
if (argc <= 1)
break;
fs = *++argv;
else if (!strcmp(arg, "p") && parameter == NULL)
argc--;
} else if (!strcmp(arg, "p") && parameter == NULL) {
if (argc <= 1)
break;
parameter = *++argv;
else
argc--;
} else
usage(programName);
}