diff options
author | Ted Hess <thess@kitschensync.net> | 2020-07-23 14:07:16 -0400 |
---|---|---|
committer | Ted Hess <thess@kitschensync.net> | 2020-07-23 14:25:10 -0400 |
commit | 600416d5c14663faa3e2eb42ff71a41d4fa8e0f6 (patch) | |
tree | 6c25de865ab344358aa66b1f44e5f1bb96cf735e /tools/mkimage | |
parent | 1db3fb5842ce5c5cf00f2f30d165b92c6ff2a9cf (diff) | |
download | upstream-600416d5c14663faa3e2eb42ff71a41d4fa8e0f6.tar.gz upstream-600416d5c14663faa3e2eb42ff71a41d4fa8e0f6.tar.bz2 upstream-600416d5c14663faa3e2eb42ff71a41d4fa8e0f6.zip |
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@kitschensync.net>
Diffstat (limited to 'tools/mkimage')
-rw-r--r-- | tools/mkimage/patches/020-fix-file-creation-perms.patch | 11 |
1 files changed, 11 insertions, 0 deletions
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; |