Fix: streamline ret/errno of run_as()
[lttng-tools.git] / src / common / index / index.c
index 46f8bcb1f02bfcb185782d65bb5e77fa8c4720cc..c193ced27568f94f5764dd7672e8b440aaf104a7 100644 (file)
@@ -53,7 +53,7 @@ int index_create_file(char *path_name, char *stream_name, int uid, int gid,
        /* Create index directory if necessary. */
        ret = utils_mkdir(fullpath, S_IRWXU | S_IRWXG, uid, gid);
        if (ret < 0) {
-               if (ret != -EEXIST) {
+               if (errno != EEXIST) {
                        PERROR("Index trace directory creation error");
                        goto error;
                }
This page took 0.022966 seconds and 4 git commands to generate.