Fix: agent port file is o+w when launching as root
[lttng-tools.git] / src / bin / lttng-sessiond / register.cpp
index f6aaef623f23369328ec1fc61b1748b12ed177e0..34efeac40f57729fd0811806e56cb7665847fefc 100644 (file)
@@ -41,7 +41,6 @@ static int create_application_socket(void)
 {
        int ret = 0;
        int apps_sock;
-       const mode_t old_umask = umask(0);
 
        /* Create the application unix socket */
        apps_sock = lttcomm_create_unix_sock(
@@ -74,7 +73,6 @@ static int create_application_socket(void)
        DBG3("Session daemon application socket created (fd = %d) ", apps_sock);
        ret = apps_sock;
 end:
-       umask(old_umask);
        return ret;
 error_close_socket:
        if (close(apps_sock)) {
This page took 0.023294 seconds and 4 git commands to generate.