diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-15 23:39:17 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-15 23:39:17 +0000 |
commit | 6366dcd8eebbd6da71a36d20aab156ca9842f001 (patch) | |
tree | 952ab262c3b0a6ad0821c2c7a23a037b1d95220b | |
parent | 24e8e1fb36c3fa6319b00dff8b1db7feeb214905 (diff) | |
download | tor-6366dcd8eebbd6da71a36d20aab156ca9842f001.tar.gz tor-6366dcd8eebbd6da71a36d20aab156ca9842f001.zip |
r14186@tombo: nickm | 2008-02-15 18:38:52 -0500
Add an XXXX021 item so we eventually stop calling setuid() and setgid() unnecessarily.
svn:r13533
-rw-r--r-- | src/or/config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index 522e0c06fc..4d6e30bb76 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -1013,6 +1013,8 @@ options_act_reversible(or_options_t *old_options, char **msg) /* Setuid/setgid as appropriate */ if (options->User || options->Group) { + /* XXXX021 We should only do this the first time through, not on + * every setconf. */ if (switch_id(options->User, options->Group) != 0) { /* No need to roll back, since you can't change the value. */ *msg = tor_strdup("Problem with User or Group value. " |