diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-13 15:15:41 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-15 20:20:29 -0400 |
commit | 3b6cbf253494303f612eeb09a6fbb30a7c15c7fa (patch) | |
tree | c7cc77c25edb68e869c78e47ed934fa1efebbc29 /src/or/connection.c | |
parent | b147c01295deb8c09807fda3b5e4945edcfaf81a (diff) | |
download | tor-3b6cbf253494303f612eeb09a6fbb30a7c15c7fa.tar.gz tor-3b6cbf253494303f612eeb09a6fbb30a7c15c7fa.zip |
Add a function to pull off the final component of a path
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 12e00e59bb..ab265df1af 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -967,6 +967,8 @@ connection_create_listener(const struct sockaddr *listensockaddr, goto err; } if (get_options()->ControlSocketsGroupWritable) { + /* We need to use chmod; fchmod doesn't work on sockets on all + * platforms. */ if (chmod(address, 0660) < 0) { log_warn(LD_FS,"Unable to make %s group-writable.", address); tor_close_socket(s); |