[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] merge?



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID a172340ae3f333f3634fa0afce1791a70ef09604
# Parent  a4ad6692193ab61e33ad326a9c86b9303e244473
# Parent  fa4cc3f53c6401667b4758279f7f0d2be88dbca7
merge?

diff -r a4ad6692193a -r a172340ae3f3 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Tue Sep 27 14:11:07 2005
+++ b/tools/python/xen/xm/main.py       Tue Sep 27 14:11:59 2005
@@ -187,6 +187,10 @@
     arg_check(args,1,"restore")
 
     savefile = os.path.abspath(args[0])
+
+    if not os.access(savefile, os.R_OK):
+        err("xm restore: Unable to read file %s" % savefile)
+        sys.exit(1)
 
     from xen.xend.XendClient import server
     info = server.xend_domain_restore(savefile)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.