rtems_shell_main_chmod: Correct argument indexing

Closes #4751
This commit is contained in:
zack leung
2022-12-25 21:40:57 -05:00
committed by Joel Sherrill
parent 4523c71340
commit c8c713c6bd

View File

@@ -56,7 +56,7 @@ static int rtems_shell_main_chmod(
* Now change the files modes
*/
for (n=2 ; n < argc ; n++) {
sc = chmod(argv[n++], mode);
sc = chmod(argv[n], mode);
_Assert_Unused_variable_unequal(sc, -1);
}