Index: new/qemu-img.c
===================================================================
---- new.orig/qemu-img.c 2012-11-21 11:11:22.000000000 +0100
-+++ new/qemu-img.c 2012-11-21 11:51:19.000000000 +0100
-@@ -1580,7 +1580,9 @@
- error_report("Could not delete snapshot '%s': %d (%s)",
- snapshot_name, ret, strerror(-ret));
- }
-- break;
+--- new.orig/qemu-img.c 2014-11-20 06:45:06.000000000 +0100
++++ new/qemu-img.c 2014-11-20 06:51:05.000000000 +0100
+@@ -2080,7 +2080,8 @@
+
+ list = collect_image_info_list(filename, fmt, chain);
+ if (!list) {
+- return 1;
+ // return success if snapshot does not exists
-+ if (ret == -ENOENT) ret = 0;
-+ break;
++ return 0;
}
- /* Cleanup */
+ switch (output_format) {