mirror of
https://review.haiku-os.org/haiku
synced 2025-01-22 06:16:03 +01:00
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:
parent
f96cab8aa3
commit
3bb475bdcb
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user