tools/mkimage: create .itb file with read-access for group,other not just owner.
[openwrt/staging/hauke.git] / tools / mkimage / patches / 020-fix-file-creation-perms.patch
1 --- a/tools/fit_image.c
2 +++ b/tools/fit_image.c
3 @@ -642,7 +642,7 @@ static int copyfile(const char *src, con
4 goto out;
5 }
6
7 - fd_dst = open(dst, O_WRONLY | O_CREAT, 0700);
8 + fd_dst = open(dst, O_WRONLY | O_CREAT, 0744);
9 if (fd_dst < 0) {
10 printf("Can't open file %s (%s)\n", dst, strerror(errno));
11 goto out;