aboutsummaryrefslogtreecommitdiffstats
path: root/tools/mkimage/patches/020-fix-file-creation-perms.patch
blob: 80cda288ab3d085c94323829fc2adaffb538a86f (plain)
1
2
3
4
5
6
7
8
9
10
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;