diff -r 5ea81e640509 tools/python/xen/xm/main.py --- a/tools/python/xen/xm/main.py Sun Sep 25 10:47:22 2005 +++ b/tools/python/xen/xm/main.py Mon Sep 26 09:32:32 2005 @@ -175,6 +175,10 @@ dom = args[0] # TODO: should check if this exists savefile = os.path.abspath(args[1]) + + if not os.access(os.path.dirname(savefile), os.W_OK): + err("xm save: Unable to create file %s" % savefile) + sys.exit(1) from xen.xend.XendClient import server server.xend_domain_save(dom, savefile)