[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r17271: {tor} Doh. Need to drop GID first. (tor/trunk/contrib)
Author: mikeperry
Date: 2008-11-14 14:47:28 -0500 (Fri, 14 Nov 2008)
New Revision: 17271
Modified:
tor/trunk/contrib/linux-tor-prio.sh
Log:
Doh. Need to drop GID first.
Modified: tor/trunk/contrib/linux-tor-prio.sh
===================================================================
--- tor/trunk/contrib/linux-tor-prio.sh 2008-11-14 19:44:35 UTC (rev 17270)
+++ tor/trunk/contrib/linux-tor-prio.sh 2008-11-14 19:47:28 UTC (rev 17271)
@@ -23,8 +23,8 @@
#
# #include <unistd.h>
# int main(int argc, char **argv) {
+# if(setresgid(GID, GID, GID) == -1) { perror("setresgid"); return 1; }
# if(setresuid(UID, UID, UID) == -1) { perror("setresuid"); return 1; }
-# if(setresgid(GID, GID, GID) == -1) { perror("setresgid"); return 1; }
# execl("/bin/tor", "/bin/tor", "-f", "/etc/tor/torrc", NULL);
# perror("execl"); return 1;
# }