Explorar o código

Doh. Need to drop GID first.


svn:r17271
Mike Perry %!s(int64=17) %!d(string=hai) anos
pai
achega
425bfdae20
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      contrib/linux-tor-prio.sh

+ 1 - 1
contrib/linux-tor-prio.sh

@@ -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;
 # }