diff options
author | Chris Johns <chrisj@rtems.org> | 2023-01-30 13:37:42 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2023-01-30 13:37:42 +1100 |
commit | 2243fd6d6b2faa7f7f734c8bcc6c320b34a160cb (patch) | |
tree | 84e4041dc2de824ea272b01bef3e9fea2a3e1a98 | |
parent | cpukit/fdt: Free index before container (diff) | |
download | rtems-2243fd6d6b2faa7f7f734c8bcc6c320b34a160cb.tar.bz2 |
libmisc/shell/chmod: Fix multiple file arguments to the command
Closes #4558
-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 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; } |