From e805190de0bd3acff811315871fd5c462050440a Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Wed, 21 May 2025 07:58:34 +0200 Subject: Supply a mode for open() as requested as the O_CREAT flag is specified. --- src/app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v0.11.2-87-g4458