From 7e7db4c2b61e4e264f9d3e87ca596677e6bab2f6 Mon Sep 17 00:00:00 2001 From: Juergen Beisert Date: Fri, 20 Apr 2012 15:06:15 +0200 Subject: [PATCH] netX: add more common permissions Signed-off-by: Juergen Beisert Signed-off-by: Sascha Hauer --- scripts/gen_netx_image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/gen_netx_image.c b/scripts/gen_netx_image.c index 5c2207c0f..18e10bcae 100644 --- a/scripts/gen_netx_image.c +++ b/scripts/gen_netx_image.c @@ -218,7 +218,8 @@ int main(int argc, char *argv[]) checksum += *ptr++; nb->boot_checksum = -1 * checksum; - fd = open(outfile, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); + fd = open(outfile, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | + S_IRGRP | S_IWGRP | S_IROTH); if(fd < 0) { perror("open"); exit(1);