diff --git a/src/util/virfile.c b/src/util/virfile.c index 8a06813925f7dd6ac5f276b3ec9f12bfa3be846a..6e9ecbe6ceaf552e7352a58c7ca2bd42f3e0338c 100644 --- a/src/util/virfile.c +++ b/src/util/virfile.c @@ -2289,7 +2289,7 @@ virDirCreateNoFork(const char *path, int ret = 0; struct stat st; - if (!((flags & VIR_DIR_CREATE_ALLOW_EXIST) && !virFileExists(path))) { + if (!((flags & VIR_DIR_CREATE_ALLOW_EXIST) && virFileExists(path))) { if (mkdir(path, mode) < 0) { ret = -errno; virReportSystemError(errno, _("failed to create directory '%s'"),