Fix: streamline ret/errno of run_as()
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index 19283d439087c7a155656314803b0472e093b0a7..a66645d959fd98f6ee40511fe635d863398f9ebb 100644 (file)
@@ -2757,7 +2757,7 @@ static int create_kernel_session(struct ltt_session *session)
                                session->kernel_session->consumer->dst.trace_path,
                                S_IRWXU | S_IRWXG, session->uid, session->gid);
                if (ret < 0) {
-                       if (ret != -EEXIST) {
+                       if (errno != EEXIST) {
                                ERR("Trace directory creation error");
                                goto error;
                        }
This page took 0.023593 seconds and 4 git commands to generate.