X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fcommon%2Findex%2Findex.c;h=96073d75fbe104a332e54b2114d1d978de6e44ca;hb=aaf3bc91a512bd0a43a6c73c036f73f7a27dd042;hp=18705a39f86e8e5e6f44c2816cdc201258961402;hpb=9a78c92e24e1f689a7fb0229516c6b1761615077;p=lttng-tools.git diff --git a/src/common/index/index.c b/src/common/index/index.c index 18705a39f..96073d75f 100644 --- a/src/common/index/index.c +++ b/src/common/index/index.c @@ -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; }