Skip to content

Commit 4a95185

Browse files
committed
Coverity CID 475385
1 parent a4209c1 commit 4a95185

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sesman/sesman.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,12 @@ main(int argc, char **argv)
933933
LOG(LOG_LEVEL_ERROR,
934934
"sesman.c: error creating dir " X11_UNIX_SOCKET_DIRECTORY);
935935
}
936-
g_chmod_hex(X11_UNIX_SOCKET_DIRECTORY, 0x1777);
936+
if (g_chmod_hex(X11_UNIX_SOCKET_DIRECTORY, 0x1777) != 0)
937+
{
938+
LOG(LOG_LEVEL_ERROR,
939+
"sesman.c: can't set permissions on "
940+
X11_UNIX_SOCKET_DIRECTORY "[%s]", g_get_strerror());
941+
}
937942
}
938943

939944
if ((error = pre_session_list_init(MAX_PRE_SESSION_ITEMS)) == 0 &&

0 commit comments

Comments
 (0)