[Pkg-privacy-commits] [txtorcon] 73/96: Merge pull request #100 from sammyshj/issue90
Jérémy Bobbio
lunar at moszumanska.debian.org
Sun Sep 6 18:33:42 UTC 2015
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository txtorcon.
commit ccbfa243498dc2c498e090178b3255115c46216a
Merge: 177d4c7 43bbef7
Author: meejah <meejah at meejah.ca>
Date: Tue Feb 17 17:39:48 2015 -0700
Merge pull request #100 from sammyshj/issue90
HiddenServiceDir should be absolute. Test also added
test/test_torconfig.py | 5 +++++
txtorcon/torconfig.py | 8 ++++++++
2 files changed, 13 insertions(+)
diff --cc txtorcon/torconfig.py
index 6774be5,784d1e7..7e9e5aa
--- a/txtorcon/torconfig.py
+++ b/txtorcon/torconfig.py
@@@ -1244,9 -1118,16 +1245,16 @@@ class TorConfig(object)
)
)
directory = v
+ _directory = directory
+ directory = os.path.abspath(directory)
+ if directory != _directory:
+ warnings.warn(
+ "Directory path: %s changed to absolute path: %s" % (_directory, directory),
+ RuntimeWarning
+ )
ports = []
ver = None
- auth = None
+ auth = []
group_read = 0
elif k == 'HiddenServicePort':
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/txtorcon.git
More information about the Pkg-privacy-commits
mailing list