From c8661a1a7ee8ef110100b4de8a2ef602f5d5530c Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 5 May 2015 12:34:41 -0400 Subject: [PATCH] virfile: virDirCreate: Fix ALLOW_EXIST conditional I screwed this up in the previous (post 1.2.16) commits --- src/util/virfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/virfile.c b/src/util/virfile.c index 8a06813925..6e9ecbe6ce 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'"),