]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virfile: virDirCreate: Fix ALLOW_EXIST conditional
authorCole Robinson <crobinso@redhat.com>
Tue, 5 May 2015 16:34:41 +0000 (12:34 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 19 May 2015 23:24:42 +0000 (19:24 -0400)
I screwed this up in the previous (post 1.2.16) commits

src/util/virfile.c

index 8a06813925f7dd6ac5f276b3ec9f12bfa3be846a..6e9ecbe6ceaf552e7352a58c7ca2bd42f3e0338c 100644 (file)
@@ -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'"),