summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2025-05-21 05:58:34 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2025-05-21 05:58:34 (GMT)
commite805190de0bd3acff811315871fd5c462050440a (patch)
tree0bf0e0dbfdf519c02f02dd01828866fe44fc4f9c
parent2258d4254612399ac1a3e7597a39a1bc83c155ff (diff)
Supply a mode for open() as requested as the O_CREAT flag is specified.
-rw-r--r--src/app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app.c b/src/app.c
index 8c1a3e4..ef62135 100644
--- a/src/app.c
+++ b/src/app.c
@@ -399,7 +399,7 @@ static void ensure_wm_icon_and_name(void)
filename = get_xdg_data_dir("icons/hicolor/scalable/apps/chrysalide-logo.svg", true);
- fd = open(filename, O_WRONLY | O_CREAT);
+ fd = open(filename, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR);
if (fd == -1)
LOG_ERROR_N("open");