mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-25 13:57:15 +00:00
libmisc/shell/chmod: Fix multiple file arguments to the command
Closes #4558
This commit is contained in:
@@ -53,7 +53,7 @@ static int rtems_shell_main_chmod(
|
||||
* Now change the files modes
|
||||
*/
|
||||
for (n=2 ; n < argc ; n++)
|
||||
chmod(argv[n++], mode);
|
||||
chmod(argv[n], mode);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user