diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-05-14 13:50:43 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-05-14 13:50:43 -0400 |
commit | e12af2adb0919d0de6d6ba44462d9255f63fca5b (patch) | |
tree | 816b20d4a52ca5a891eabbfb9c71f6b9585a5f1b /src/or | |
parent | 747f368c6d72cc6a68bb0a12c4209c534517b656 (diff) | |
download | tor-e12af2adb0919d0de6d6ba44462d9255f63fca5b.tar tor-e12af2adb0919d0de6d6ba44462d9255f63fca5b.tar.gz |
Add a pair of wrapper functions: tor_getpwnam() and tor_getpwuid()
We'll use these to deal with being unable to access the user DB
after we install the sandbox, to fix bug 11946.
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c index 5532026e3..a2c5743cf 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -2548,6 +2548,9 @@ tor_free_all(int postfork) free_cell_pool(); if (!postfork) { tor_tls_free_all(); +#ifndef _WIN32 + tor_getpwnam(NULL); +#endif } /* stuff in main.c */ |