Fix: streamline ret/errno of run_as()
[lttng-tools.git] / src / bin / lttng-sessiond / ust-registry.c
index 2ba41ed45dffbb91d272c4561dcf040290f6ed58..35911e322f49175a29e58f0784b32c966ca7f7db 100644 (file)
@@ -593,7 +593,6 @@ int ust_registry_session_init(struct ust_registry_session **sessionp,
                        S_IRWXU | S_IRWXG,
                        euid, egid);
                if (ret) {
-                       errno = -ret;
                        PERROR("run_as_mkdir_recursive");
                        goto error;
                }
@@ -604,7 +603,6 @@ int ust_registry_session_init(struct ust_registry_session **sessionp,
                        O_WRONLY | O_CREAT | O_EXCL,
                        S_IRUSR | S_IWUSR, euid, egid);
                if (ret < 0) {
-                       errno = -ret;
                        PERROR("Opening metadata file");
                        goto error;
                }
This page took 0.026185 seconds and 5 git commands to generate.