summaryrefslogtreecommitdiff
path: root/contrib/linux-tor-prio.sh
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@fscked.org>2008-11-14 19:47:28 +0000
committerMike Perry <mikeperry-git@fscked.org>2008-11-14 19:47:28 +0000
commit425bfdae202a21fee5f5846edfe54575d6dcd3b4 (patch)
tree82ead71cfa35a40dffdbbfb917d9d7b278395158 /contrib/linux-tor-prio.sh
parent4a3ca7eb16f713bdc45d78906c89b15fbffa0f4d (diff)
downloadtor-425bfdae202a21fee5f5846edfe54575d6dcd3b4.tar.gz
tor-425bfdae202a21fee5f5846edfe54575d6dcd3b4.zip
Doh. Need to drop GID first.
svn:r17271
Diffstat (limited to 'contrib/linux-tor-prio.sh')
-rw-r--r--contrib/linux-tor-prio.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/linux-tor-prio.sh b/contrib/linux-tor-prio.sh
index d407c6cdf2..d03b470ca1 100644
--- a/contrib/linux-tor-prio.sh
+++ b/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;
# }