Doh. Need to drop GID first.

svn:r17271
This commit is contained in:
Mike Perry 2008-11-14 19:47:28 +00:00
parent 4a3ca7eb16
commit 425bfdae20

View File

@ -23,8 +23,8 @@
#
# #include <unistd.h>
# int main(int argc, char **argv) {
# if(setresuid(UID, UID, UID) == -1) { perror("setresuid"); return 1; }
# if(setresgid(GID, GID, GID) == -1) { perror("setresgid"); return 1; }
# if(setresuid(UID, UID, UID) == -1) { perror("setresuid"); return 1; }
# execl("/bin/tor", "/bin/tor", "-f", "/etc/tor/torrc", NULL);
# perror("execl"); return 1;
# }