diff options
author | Andrew Resch <andrewresch@gmail.com> | 2009-01-12 19:55:57 +0000 |
---|---|---|
committer | Andrew Resch <andrewresch@gmail.com> | 2009-01-12 19:55:57 +0000 |
commit | 535ad73c04feb2ffba82fb1ed7aa7e4bf5a5b5ed (patch) | |
tree | 9d6df0aa6801493bbd36a3a71c150b644cd0e6bc | |
parent | 4390e14485d7243164988388e68c0dd5fd3da014 (diff) | |
download | deluge-535ad73c04feb2ffba82fb1ed7aa7e4bf5a5b5ed.tar.gz deluge-535ad73c04feb2ffba82fb1ed7aa7e4bf5a5b5ed.tar.bz2 deluge-535ad73c04feb2ffba82fb1ed7aa7e4bf5a5b5ed.zip |
Append a new line to the localclient entry
-rw-r--r-- | deluge/core/authmanager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/core/authmanager.py b/deluge/core/authmanager.py index 6b6347ef6..111b922bc 100644 --- a/deluge/core/authmanager.py +++ b/deluge/core/authmanager.py @@ -74,7 +74,7 @@ class AuthManager(component.Component): from hashlib import sha1 as sha_hash except ImportError: from sha import new as sha_hash - open(auth_file, "w").write("localclient:" + sha_hash(str(random.random())).hexdigest()) + open(auth_file, "w").write("localclient:" + sha_hash(str(random.random())).hexdigest() + "\n") # Change the permissions on the file so only this user can read/write it os.chmod(auth_file, stat.S_IREAD | stat.S_IWRITE) |