From 9fac7e0a9d8586b58acac52924a0335e408f1648 Mon Sep 17 00:00:00 2001 From: Julian Uy Date: Mon, 4 Mar 2024 14:03:19 -0600 Subject: [PATCH] fix: Add mode argument to output file of bin2c --- tools/bin2c/src/bin2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bin2c/src/bin2c.c b/tools/bin2c/src/bin2c.c index d811c2572a5..2567ea6742b 100644 --- a/tools/bin2c/src/bin2c.c +++ b/tools/bin2c/src/bin2c.c @@ -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; }