Fixed segfault when you type "chmod -R". "chown -R" and "chgrp -R" are still
having problems...
This commit is contained in:
@ -118,7 +118,7 @@ int chmod_chown_chgrp_main(int argc, char **argv)
|
|||||||
argv++;
|
argv++;
|
||||||
|
|
||||||
/* Parse options */
|
/* Parse options */
|
||||||
while (**argv == '-') {
|
while (argc && (**argv == '-')) {
|
||||||
while (*++(*argv))
|
while (*++(*argv))
|
||||||
switch (**argv) {
|
switch (**argv) {
|
||||||
case 'R':
|
case 'R':
|
||||||
|
Reference in New Issue
Block a user