Fix: streamline ret/errno of run_as()
[lttng-tools.git] / src / bin / lttng-sessiond / kernel-consumer.c
index 6cda088d9e5e7600174476d29962adf2bd532189..83771f2d75c8896d142a705066410c50023acaf4 100644 (file)
@@ -57,7 +57,7 @@ static char *create_channel_path(struct consumer_output *consumer,
                /* Create directory */
                ret = run_as_mkdir_recursive(pathname, S_IRWXU | S_IRWXG, uid, gid);
                if (ret < 0) {
-                       if (ret != -EEXIST) {
+                       if (errno != EEXIST) {
                                ERR("Trace directory creation error");
                                goto error;
                        }
This page took 0.024361 seconds and 5 git commands to generate.