[or-cvs] r13533: Add an XXXX021 item so we eventually stop calling setuid() a (in tor/trunk: . src/or)
nickm at seul.org
nickm at seul.org
Fri Feb 15 23:39:18 UTC 2008
Author: nickm
Date: 2008-02-15 18:39:17 -0500 (Fri, 15 Feb 2008)
New Revision: 13533
Modified:
tor/trunk/
tor/trunk/src/or/config.c
Log:
r14186 at tombo: nickm | 2008-02-15 18:38:52 -0500
Add an XXXX021 item so we eventually stop calling setuid() and setgid() unnecessarily.
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r14186] on 49666b30-7950-49c5-bedf-9dc8f3168102
Modified: tor/trunk/src/or/config.c
===================================================================
--- tor/trunk/src/or/config.c 2008-02-15 23:39:14 UTC (rev 13532)
+++ tor/trunk/src/or/config.c 2008-02-15 23:39:17 UTC (rev 13533)
@@ -1013,6 +1013,8 @@
/* 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. "
More information about the tor-commits
mailing list