[PATCH] rtems_shell_main_chmod problem

zack leung zakthertemsdev at gmail.com
Mon Dec 26 02:36:03 UTC 2022


Closes #4751
---
 cpukit/libmisc/shell/main_chmod.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
   }

-- 
2.38.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20221225/5344e77e/attachment.htm>


More information about the devel mailing list