summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-11-07 04:34:47 +0000
committerRoger Dingledine <arma@torproject.org>2008-11-07 04:34:47 +0000
commit14773f42a7b7fdc99393a9b703f7790078c8cbe6 (patch)
treead9dd86b004287d640027279ec7b4107c9f9e1de /src/or/config.c
parent7c657925000286725b0cb080c8b920383e493d0e (diff)
downloadtor-14773f42a7b7fdc99393a9b703f7790078c8cbe6.tar.gz
tor-14773f42a7b7fdc99393a9b703f7790078c8cbe6.zip
now that we drop privs more thoroughly, switch_id() is no longer
idempotent. so now we remember if we've succeeded, and if so we don't even try. svn:r17204
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 66ee6cd52b..397d77b7d9 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1084,8 +1084,6 @@ options_act_reversible(or_options_t *old_options, char **msg)
/* Setuid/setgid as appropriate */
if (options->User) {
- /* XXXX021 We should only do this the first time through, not on
- * every setconf. */
if (switch_id(options->User) != 0) {
/* No need to roll back, since you can't change the value. */
*msg = tor_strdup("Problem with User value. See logs for details.");