[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [arm/master] Renaming startup.controlPassword to tor.password



commit a2f19e361120f215b4a11d953ddda8f7becdc7b4
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Thu Sep 12 08:56:28 2013 -0700

    Renaming startup.controlPassword to tor.password
    
    I'm changing us to a 'tor.*' namespace for tor parameters. This certainly fits
    the bill.
---
 arm/starter.py |   10 +++++-----
 armrc.sample   |    2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/arm/starter.py b/arm/starter.py
index 834eceb..057fb86 100644
--- a/arm/starter.py
+++ b/arm/starter.py
@@ -38,7 +38,7 @@ import stem.util.system
 LOG_DUMP_PATH = os.path.expanduser("~/.arm/log")
 
 CONFIG = stem.util.conf.config_dict("arm", {
-  "startup.controlPassword": None,
+  "tor.password": None,
   "startup.blindModeEnabled": False,
   "startup.events": "N3",
   "msg.help": "",
@@ -296,7 +296,7 @@ def main():
   chroot = arm.util.torTools.get_chroot()
 
   try:
-    controller.authenticate(password = CONFIG["startup.controlPassword"], chroot_path = chroot)
+    controller.authenticate(password = CONFIG["tor.password"], chroot_path = chroot)
   except (stem.connection.MissingPassword, stem.connection.IncorrectPassword) as exc:
     if isinstance(stem.connection.IncorrectPassword, exc):
       print "Password found in '%s' was incorrect" % args.config
@@ -315,12 +315,12 @@ def main():
   # Removing references to the controller password so the memory can be
   # freed. Without direct memory access this is about the best we can do.
 
-  if "startup.controlPassword" in config._contents:
-    del config._contents["startup.controlPassword"]
+  if "tor.password" in config._contents:
+    del config._contents["tor.password"]
 
     pwLineNum = None
     for i in range(len(config._raw_contents)):
-      if config._raw_contents[i].strip().startswith("startup.controlPassword"):
+      if config._raw_contents[i].strip().startswith("tor.password"):
         pwLineNum = i
         break
 
diff --git a/armrc.sample b/armrc.sample
index 89e3878..a43105f 100644
--- a/armrc.sample
+++ b/armrc.sample
@@ -1,5 +1,5 @@
 # Startup options
-startup.controlPassword
+tor.password
 startup.blindModeEnabled false
 startup.events N3
 startup.dataDirectory ~/.arm



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits