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:
parent
4cdb09d668
commit
7e7db4c2b6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue