From: Brian Warner <warner@allmydata.com>
Date: Tue, 17 Jul 2007 01:06:27 +0000 (-0700)
Subject: client.py: write control.furl in the right place
X-Git-Url: https://git.rkrishnan.org/components/%22news.html/frontends/%22file:/vdrive?a=commitdiff_plain;h=e91288d9edff4344f8e3d41b318b6c7354d0b8e0;p=tahoe-lafs%2Ftahoe-lafs.git

client.py: write control.furl in the right place
---

diff --git a/src/allmydata/client.py b/src/allmydata/client.py
index d0099e3e..a4cace20 100644
--- a/src/allmydata/client.py
+++ b/src/allmydata/client.py
@@ -118,10 +118,11 @@ class Client(node.Node, Referenceable):
         c = ControlServer()
         c.setServiceParent(self)
         control_url = self.tub.registerReference(c)
-        f = open("control.furl", "w")
+        control_furl_file = os.path.join(self.basedir, "control.furl")
+        f = open(control_furl_file, "w")
         f.write(control_url + "\n")
         f.close()
-        os.chmod("control.furl", 0600)
+        os.chmod(control_furl_file, 0600)
 
 
     def remote_get_versions(self):