Fix: streamline ret/errno of run_as()
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index 59faae853fc389cfc946a9d700e4b8feb2451db5..c5c7d84b1f5d7bb0d434fff7f187665ca9041cc7 100644 (file)
@@ -2851,7 +2851,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.0233 seconds and 4 git commands to generate.