]> git.proxmox.com Git - pve-qemu-kvm.git/commitdiff
backu: fix config file path for directory dump
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 6 Dec 2013 07:10:51 +0000 (08:10 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 6 Dec 2013 07:10:51 +0000 (08:10 +0100)
debian/patches/backup-add-dir-format.patch

index f90d166a7dd85f50f54f01c015e286a0d0fb40f2..9663f5009b8632705ea41e0691ad69d6f029dc30 100644 (file)
@@ -14,7 +14,7 @@ Index: new/qapi-schema.json
 Index: new/blockdev.c
 ===================================================================
 --- new.orig/blockdev.c        2013-12-06 07:46:40.000000000 +0100
-+++ new/blockdev.c     2013-12-06 08:01:03.000000000 +0100
++++ new/blockdev.c     2013-12-06 08:09:32.000000000 +0100
 @@ -1463,6 +1463,8 @@
      uint8_t dev_id;
      //bool started;
@@ -161,7 +161,7 @@ Index: new/blockdev.c
 +            }
 +        } else if (format == BACKUP_FORMAT_DIR) {
 +            char config_path[PATH_MAX];
-+            snprintf(config_path, PATH_MAX, "%s/%s.raw", backup_dir, basename);
++            snprintf(config_path, PATH_MAX, "%s/%s", backup_dir, basename);
 +            if (!g_file_set_contents(config_path, cdata, clen, &err)) {
 +                error_setg(errp, "unable to write config file '%s'", config_path);
 +                g_free(cdata);