aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/mkimage/patches/020-fix-file-creation-perms.patch11
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;