diff options
author | zack leung <zakthertemsdev@gmail.com> | 2022-12-25 21:40:57 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2022-12-26 13:51:03 -0600 |
commit | c8c713c6bdd73aa1d491f0f42bb5236e927e5f03 (patch) | |
tree | eff8a9c829db5302148a5940001494da7f96e0ce | |
parent | rtems_shell_main_mmove problem (diff) | |
download | rtems-c8c713c6bdd73aa1d491f0f42bb5236e927e5f03.tar.bz2 |
rtems_shell_main_chmod: Correct argument indexing
Closes #4751
-rw-r--r-- | cpukit/libmisc/shell/main_chmod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libmisc/shell/main_chmod.c b/cpukit/libmisc/shell/main_chmod.c index 1f646d92d4..9a42cbd940 100644 --- a/cpukit/libmisc/shell/main_chmod.c +++ b/cpukit/libmisc/shell/main_chmod.c @@ -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); } |