mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Doh. Need to drop GID first.
svn:r17271
This commit is contained in:
parent
4a3ca7eb16
commit
425bfdae20
@ -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;
|
||||
# }
|
||||
|
Loading…
Reference in New Issue
Block a user