]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Doh. Need to drop GID first.
authorMike Perry <mikeperry-git@fscked.org>
Fri, 14 Nov 2008 19:47:28 +0000 (19:47 +0000)
committerMike Perry <mikeperry-git@fscked.org>
Fri, 14 Nov 2008 19:47:28 +0000 (19:47 +0000)
svn:r17271

contrib/linux-tor-prio.sh

index d407c6cdf2f2e335e88c38ca68bf732e3e0b5a16..d03b470ca1e1bdd79c5b7d20cbe600d8c9029bb8 100644 (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;
 # }