diff options
Diffstat (limited to 'chmod_chown_chgrp.c')
-rw-r--r-- | chmod_chown_chgrp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chmod_chown_chgrp.c b/chmod_chown_chgrp.c index a3af4fb..1ff4bde 100644 --- a/chmod_chown_chgrp.c +++ b/chmod_chown_chgrp.c @@ -119,7 +119,7 @@ int chmod_chown_chgrp_main(int argc, char **argv) /* Parse options */ while (--argc >= 0 && *argv && (**argv == '-')) { - while (*++(*argv)) + while (*++(*argv)) { switch (**argv) { case 'R': recursiveFlag = TRUE; @@ -128,6 +128,7 @@ int chmod_chown_chgrp_main(int argc, char **argv) fprintf(stderr, invalid_option, invocationName, **argv); usage(appUsage); } + } argv++; } |