]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix error on fs pool build failure
authorJán Tomko <jtomko@redhat.com>
Tue, 15 Jul 2014 12:30:52 +0000 (14:30 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 16 Jul 2014 07:39:57 +0000 (09:39 +0200)
https://bugzilla.redhat.com/show_bug.cgi?id=1119592

Introduced by commit 62927dd v0.7.6.

src/storage/storage_backend_fs.c

index 1615c121ae56c737bb5d23cfb0f8a673904f918f..bfaa41fd67682ec7c7af5ecd5c06d2e8d6ea9809 100644 (file)
@@ -798,7 +798,7 @@ virStorageBackendFileSystemBuild(virConnectPtr conn ATTRIBUTE_UNUSED,
                             VIR_DIR_CREATE_FORCE_PERMS |
                             VIR_DIR_CREATE_ALLOW_EXIST |
                             (pool->def->type == VIR_STORAGE_POOL_NETFS
-                            ? VIR_DIR_CREATE_AS_UID : 0)) < 0)) {
+                            ? VIR_DIR_CREATE_AS_UID : 0))) < 0) {
         virReportSystemError(-err, _("cannot create path '%s'"),
                              pool->def->target.path);
         goto error;