[openwrt/openwrt] tools/mkimage: create .itb file with read-access for group, other not just owner.

LEDE Commits lede-commits at lists.infradead.org
Thu Jul 23 14:40:11 EDT 2020


On 23.07.20 20:25, LEDE Commits wrote:
> thess pushed a commit to openwrt/openwrt.git, branch master:
> https://git.openwrt.org/600416d5c14663faa3e2eb42ff71a41d4fa8e0f6
>
> commit 600416d5c14663faa3e2eb42ff71a41d4fa8e0f6
> Author: Ted Hess <thess at kitschensync.net>
> AuthorDate: Thu Jul 23 14:07:16 2020 -0400
>
>      tools/mkimage: create .itb file with read-access for group,other not just owner.
>      
>      This patch will fix the source of 403 errors on these files
>      from downloads.openwrt.org.
>      
>      Signed-off-by: Ted Hess <thess at kitschensync.net>

Acked-by: John Crispin <john at phrozen.org>

I ran into this last week ;)


> ---
>   tools/mkimage/patches/020-fix-file-creation-perms.patch | 11 +++++++++++
>   1 file changed, 11 insertions(+)
>
> diff --git a/tools/mkimage/patches/020-fix-file-creation-perms.patch b/tools/mkimage/patches/020-fix-file-creation-perms.patch
> new file mode 100644
> index 0000000000..80cda288ab
> --- /dev/null
> +++ b/tools/mkimage/patches/020-fix-file-creation-perms.patch
> @@ -0,0 +1,11 @@
> +--- a/tools/fit_image.c
> ++++ b/tools/fit_image.c
> +@@ -642,7 +642,7 @@ static int copyfile(const char *src, con
> + 		goto out;
> + 	}
> +
> +-	fd_dst = open(dst, O_WRONLY | O_CREAT, 0700);
> ++	fd_dst = open(dst, O_WRONLY | O_CREAT, 0744);
> + 	if (fd_dst < 0) {
> + 		printf("Can't open file %s (%s)\n", dst, strerror(errno));
> + 		goto out;
>
> _______________________________________________
> lede-commits mailing list
> lede-commits at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-commits



More information about the lede-commits mailing list