Skip to content

Commit

Permalink
fix: Add mode argument to output file of bin2c
Browse files Browse the repository at this point in the history
  • Loading branch information
uyjulian committed Mar 4, 2024
1 parent 9dd5b81 commit 9fac7e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/bin2c/src/bin2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ int main(int argc, char *argv[])
return 1;
}

if ((dst_fd = open(argv[2], O_RDWR | O_CREAT | O_TRUNC)) == -1) {
if ((dst_fd = open(argv[2], O_RDWR | O_CREAT | O_TRUNC, (mode_t)0644)) == -1) {
printf("Failed to open/create %s.\n", argv[2]);
return 1;
}
Expand Down

0 comments on commit 9fac7e0

Please sign in to comment.