Add check for QEMU saved image magic (Soren Hansen)

This commit is contained in:
Daniel P. Berrange 2008-03-23 22:26:18 -04:00
parent 3642ae9e72
commit 4273563b3b

View File

@ -326,7 +326,7 @@ class vmmManager(gobject.GObject):
try:
f = open(file, "r")
magic = f.read(16)
if magic != "LinuxGuestRecord":
if magic != "LinuxGuestRecord" and magic != "LibvirtQemudSave":
return False
return True
except: