From e12af2adb0919d0de6d6ba44462d9255f63fca5b Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 14 May 2014 13:50:43 -0400 Subject: 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. --- src/or/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/or') 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 */ -- cgit v1.2.3