mkimage: fit: don't create image with 0700 permissions
[oweals/u-boot.git] / tools / fit_image.c
index dd61a816c93f65c141326f28ad9eea0028ed7488..4301b5decbba182821f7b9a01783111813c091fe 100644 (file)
@@ -642,7 +642,7 @@ static int copyfile(const char *src, const char *dst)
                goto out;
        }
 
-       fd_dst = open(dst, O_WRONLY | O_CREAT, 0700);
+       fd_dst = open(dst, O_WRONLY | O_CREAT, 0666);
        if (fd_dst < 0) {
                printf("Can't open file %s (%s)\n", dst, strerror(errno));
                goto out;