Fix: streamline ret/errno of run_as()
[lttng-tools.git] / src / common / index / index.c
index 18705a39f86e8e5e6f44c2816cdc201258961402..96073d75fbe104a332e54b2114d1d978de6e44ca 100644 (file)
@@ -52,7 +52,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.022584 seconds and 4 git commands to generate.