[PATCH v2 1/5] virfile: virDirCreate: Fix ALLOW_EXIST conditional

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 8a06813..6e9ecbe 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'"),
-- 
2.4.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]