diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-05-24 12:56:31 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-05-24 12:56:31 -0400 |
commit | 254504fc1494b1ca4eea14eb71bd5b4b5d0d2765 (patch) | |
tree | 1c856a23e6cb89a5cd81c9459f47ce98fd9a9596 /changes | |
parent | 75fc4dbbcabaedc715f0f9e883ccab1c9634e787 (diff) | |
download | tor-254504fc1494b1ca4eea14eb71bd5b4b5d0d2765.tar.gz tor-254504fc1494b1ca4eea14eb71bd5b4b5d0d2765.zip |
Have get_parent_directory() handle "/foo" and "/" correctly.
The parent of "/foo" is "/"; and "/" is its own parent.
This would cause Tor to fail if you tried to have a PF_UNIX control
socket in the root directory. That would be a stupid thing to do
for other reasons, but there's no reason to fail like _this_.
Bug found by Esteban Manchado Velázquez. Fix for bug 5089; bugfix on
Tor 0.2.2.26-beta. Unit test included.
Diffstat (limited to 'changes')
-rw-r--r-- | changes/bug5089 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/changes/bug5089 b/changes/bug5089 new file mode 100644 index 0000000000..2062885af7 --- /dev/null +++ b/changes/bug5089 @@ -0,0 +1,5 @@ + o Minor bugfixes: + - Correctly handle checking the permissions on the parent + directory of a control socket in the root directory. Bug found + by Esteban Manchado Velázquez. Fix for bug 5089; bugfix on Tor + 0.2.2.26-beta. |