Skip to contentSkip to conversation

Don't explode when running xm as non-root

PATCH RESEND New Dan Smith 1 participant 1 message Oct 10, 2005

lore
Share & tools
lore

Dan Smith

author
#0 lore raw

PATCH RESEND 1/1 Don't explode when running xm as non-root

The attached patch fixes a recent regression in xm which causes a stack trace if a user tries to run xm as a non-root user.

I ran the latest xm-test, and nothing (else) broke as a result of this patch.

tools/python/xen/xend/XendProtocol.py Wed Oct 5 15:14:52 2005 renamed from tools/python/xen/xend/XendProtocol.py Wed Oct 5 18:15:56 2005 +1 -4
diff -r f98c8238e909 tools/python/xen/xend/XendProtocol.py
@@ -32,9 +32,6 @@
 HTTP_NO_CONTENT                      = 204
 
 
-xroot = XendRoot.instance()
-
-
 class XendError(RuntimeError):
     """Error class for 'expected errors' when talking to xend.
     """
@@ -202,7 +199,7 @@
 
     def __init__(self, path=None):
         if path is None:
-            path = xroot.get_xend_unix_path()
+            path = XendRoot.instance().get_xend_unix_path()
         self.path = path
 
     def makeConnection(self, url):
Signature · 5 lines
-- 
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: [email protected]

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel