[rtems commit] libmisc/shell/chmod: Fix multiple file arguments to the command
Chris Johns
chrisj at rtems.org
Tue Jan 31 05:20:36 UTC 2023
Module: rtems
Branch: 5
Commit: 2243fd6d6b2faa7f7f734c8bcc6c320b34a160cb
Changeset: http://git.rtems.org/rtems/commit/?id=2243fd6d6b2faa7f7f734c8bcc6c320b34a160cb
Author: Chris Johns <chrisj at rtems.org>
Date: Mon Jan 30 13:37:42 2023 +1100
libmisc/shell/chmod: Fix multiple file arguments to the command
Closes #4558
---
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 0c39072f6b..288fd52f4c 100644
--- a/cpukit/libmisc/shell/main_chmod.c
+++ b/cpukit/libmisc/shell/main_chmod.c
@@ -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;
}
More information about the vc
mailing list