From 4a95185dc697be8e0dc9e9310216a2b392d2b782 Mon Sep 17 00:00:00 2001 From: matt335672 <30179339+matt335672@users.noreply.github.com> Date: Fri, 28 Feb 2025 11:18:58 +0000 Subject: [PATCH] Coverity CID 475385 --- sesman/sesman.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sesman/sesman.c b/sesman/sesman.c index 18cd765f..2add7803 100644 --- a/sesman/sesman.c +++ b/sesman/sesman.c @@ -933,7 +933,12 @@ main(int argc, char **argv) LOG(LOG_LEVEL_ERROR, "sesman.c: error creating dir " X11_UNIX_SOCKET_DIRECTORY); } - g_chmod_hex(X11_UNIX_SOCKET_DIRECTORY, 0x1777); + if (g_chmod_hex(X11_UNIX_SOCKET_DIRECTORY, 0x1777) != 0) + { + LOG(LOG_LEVEL_ERROR, + "sesman.c: can't set permissions on " + X11_UNIX_SOCKET_DIRECTORY "[%s]", g_get_strerror()); + } } if ((error = pre_session_list_init(MAX_PRE_SESSION_ITEMS)) == 0 &&