mkimage: fit: don't create image with 0700 permissions
authorThomas Hebb <tommyhebb@gmail.com>
Sun, 1 Mar 2020 18:47:53 +0000 (10:47 -0800)
committerTom Rini <trini@konsulko.com>
Fri, 17 Apr 2020 16:32:36 +0000 (12:32 -0400)
commitab5a2b0f7927196143d762b2ad9cdc51b84249b3
tree4b318be9efe7c3e7987a113c437feef96b04be46
parent04571bec56a53c846f072fb3bc7543586f10ee93
mkimage: fit: don't create image with 0700 permissions

commit 7298e422504e ("mkimage: fit: add support to encrypt image with
aes") added a new copyfile() function as part of the FIT image creation
flow. This function as currently written creates the final image with a
mode of 0700 (before umask), differing from the old behavior of 0666.
Since there doesn't seem to be any reason to make the image executable
or non-group, non-other readable, change the mask to 0666 to preserve
the old behavior.

Fixes: 7298e422504e ("mkimage: fit: add support to encrypt image with aes")
Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>
tools/fit_image.c