mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
Fixed segfault when you type "chmod -R". "chown -R" and "chgrp -R" are still
having problems...
This commit is contained in:
parent
680d65a646
commit
6ca28ba65c
@ -118,7 +118,7 @@ int chmod_chown_chgrp_main(int argc, char **argv)
|
||||
argv++;
|
||||
|
||||
/* Parse options */
|
||||
while (**argv == '-') {
|
||||
while (argc && (**argv == '-')) {
|
||||
while (*++(*argv))
|
||||
switch (**argv) {
|
||||
case 'R':
|
||||
|
Loading…
Reference in New Issue
Block a user