Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
Give open a mode if we give it O_CREAT
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Jones <[email protected]>
  • Loading branch information
vathpela committed Aug 20, 2014
1 parent 4845f01 commit 76d90a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dbxtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ main(int argc, char *argv[])
uint32_t attributes = 0;
if (ctx.dbx_file != NULL) {
vprintf("Loading dbx from \"%s\"\n", ctx.dbx_file);
int fd = open(ctx.dbx_file, O_RDWR|O_CREAT);
int fd = open(ctx.dbx_file, O_RDWR|O_CREAT, 0600);
if (fd < 0)
err(1, "Could not open file \"%s\"", ctx.dbx_file);

Expand Down

0 comments on commit 76d90a5

Please sign in to comment.