Skip to content

Commit

Permalink
Merge pull request #544 from uyjulian/bin2c_mode_fix
Browse files Browse the repository at this point in the history
Add mode argument to output file of bin2c
  • Loading branch information
rickgaiser committed Mar 6, 2024
2 parents 9dd5b81 + 9fac7e0 commit d344db8
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 d344db8

Please sign in to comment.