rtems_shell_main_chmod: Correct argument indexing

Closes #4751
This commit is contained in:
zack leung
2022-12-26 13:51:03 -06:00
committed by Joel Sherrill
parent 4523c71340
commit c8c713c6bd
+1 -1
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);
}