From: Cole Robinson Date: Tue, 5 May 2015 16:34:41 +0000 (-0400) Subject: virfile: virDirCreate: Fix ALLOW_EXIST conditional X-Git-Tag: v1.2.16-rc1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8661a1a7ee8ef110100b4de8a2ef602f5d5530c;p=thirdparty%2Flibvirt.git virfile: virDirCreate: Fix ALLOW_EXIST conditional I screwed this up in the previous (post 1.2.16) commits --- 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'"),