mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-02 09:47:16 +03:00
9f8da1f666
When cloning using libvirt APIs the function virStorageVolCreateXMLFrom is used. However name and permissions are taken from the new XML [1]. By copying the permissions (only the mode is used) we can avoid some unexpected issues. [1] https://libvirt.org/html/libvirt-libvirt-storage.html#virStorageVolCreateXMLFrom Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2115153 Signed-off-by: Martin Kletzander <mkletzan@redhat.com>