X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Findex%2Findex.c;h=c193ced27568f94f5764dd7672e8b440aaf104a7;hp=46f8bcb1f02bfcb185782d65bb5e77fa8c4720cc;hb=df5b86c84d896eb2d74a8757c234492c1d1fc3be;hpb=2898de39cf552fdc0bc42575997b3885eee091a7 diff --git a/src/common/index/index.c b/src/common/index/index.c index 46f8bcb1f..c193ced27 100644 --- a/src/common/index/index.c +++ b/src/common/index/index.c @@ -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; }