diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2025-05-21 05:58:34 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2025-05-21 05:58:34 (GMT) |
commit | e805190de0bd3acff811315871fd5c462050440a (patch) | |
tree | 0bf0e0dbfdf519c02f02dd01828866fe44fc4f9c | |
parent | 2258d4254612399ac1a3e7597a39a1bc83c155ff (diff) |
Supply a mode for open() as requested as the O_CREAT flag is specified.
-rw-r--r-- | src/app.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |