[PATCH] rtems_shell_main_chmod problem
Joel Sherrill
joel at rtems.org
Mon Dec 26 19:49:48 UTC 2022
This looks good. I will push it.
Thanks.
--joel
On Mon, Dec 26, 2022 at 1:47 PM zack leung <zakthertemsdev at gmail.com> wrote:
> 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
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20221226/7a7060c9/attachment.htm>
More information about the devel
mailing list