[PATCH 4/6] netX: add more common permissions

Juergen Beisert jbe at pengutronix.de
Fri Apr 20 09:06:15 EDT 2012


Signed-off-by: Juergen Beisert <jbe at pengutronix.de>
---
 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 5c2207c..18e10bc 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);
-- 
1.7.10




More information about the barebox mailing list