Fix: agent port file is o+w when launching as root
[lttng-tools.git] / src / bin / lttng-sessiond / client.cpp
index 1f94bdad8954f94a7aa06c1576dec4668b6141e0..a52062e07f877ddc08ccf84604a56c5f2ff1fd59 100644 (file)
@@ -2396,7 +2396,6 @@ init_setup_error:
 static int create_client_sock(void)
 {
        int ret, client_sock;
-       const mode_t old_umask = umask(0);
 
        /* Create client tool unix socket */
        client_sock = lttcomm_create_unix_sock(
@@ -2430,7 +2429,6 @@ static int create_client_sock(void)
        DBG("Created client socket (fd = %i)", client_sock);
        ret = client_sock;
 end:
-       umask(old_umask);
        return ret;
 }
 
This page took 0.022977 seconds and 4 git commands to generate.