9
0
Fork 0

netX: add more common permissions

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Juergen Beisert 2012-04-20 15:06:15 +02:00 committed by Sascha Hauer
parent 4cdb09d668
commit 7e7db4c2b6
1 changed files with 2 additions and 1 deletions

View File

@ -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);