From e91288d9edff4344f8e3d41b318b6c7354d0b8e0 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Mon, 16 Jul 2007 18:06:27 -0700 Subject: [PATCH] client.py: write control.furl in the right place --- src/allmydata/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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): -- 2.45.2