Fix: streamline ret/errno of run_as()
[lttng-tools.git] / src / bin / lttng-sessiond / consumer.c
index ea760000c39febfd11856963b4a4a4485ae31b5e..3c08041b0110f340aaec10daf7fdd1c9e44c9413 100644 (file)
@@ -1342,7 +1342,7 @@ int consumer_snapshot_channel(struct consumer_socket *socket, uint64_t key,
                ret = run_as_mkdir_recursive(msg.u.snapshot_channel.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.030621 seconds and 4 git commands to generate.