diff options
Diffstat (limited to 'package/boot/rbcfg/src/main.c')
-rw-r--r-- | package/boot/rbcfg/src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/boot/rbcfg/src/main.c b/package/boot/rbcfg/src/main.c index 2acbfbd8cb..7da46f90a5 100644 --- a/package/boot/rbcfg/src/main.c +++ b/package/boot/rbcfg/src/main.c @@ -498,7 +498,7 @@ rbcfg_update(int tmp) put_u32(ctx->buf + 4, crc); name = (tmp) ? ctx->tmp_file : ctx->mtd_device; - fd = open(name, O_WRONLY | O_CREAT); + fd = open(name, O_WRONLY | O_CREAT, 0640); if (fd < 0) { fprintf(stderr, "unable to open %s for writing\n", name); err = RB_ERR_IO; |