aboutsummaryrefslogtreecommitdiff
path: root/src/or/hibernate.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-05-24 12:56:31 -0400
committerNick Mathewson <nickm@torproject.org>2012-05-24 12:56:31 -0400
commit254504fc1494b1ca4eea14eb71bd5b4b5d0d2765 (patch)
tree1c856a23e6cb89a5cd81c9459f47ce98fd9a9596 /src/or/hibernate.h
parent75fc4dbbcabaedc715f0f9e883ccab1c9634e787 (diff)
downloadtor-254504fc1494b1ca4eea14eb71bd5b4b5d0d2765.tar
tor-254504fc1494b1ca4eea14eb71bd5b4b5d0d2765.tar.gz
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 'src/or/hibernate.h')
0 files changed, 0 insertions, 0 deletions