projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c878bf
)
Fix tincd terminating immediately on Windows.
author
Guus Sliepen
<guus@tinc-vpn.org>
Wed, 6 Feb 2013 10:30:35 +0000
(11:30 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Wed, 6 Feb 2013 10:30:35 +0000
(11:30 +0100)
src/tincd.c
patch
|
blob
|
history
diff --git
a/src/tincd.c
b/src/tincd.c
index 7336a5f0ae07e1ede61ba956e844dbab722a6377..1feab407283dda960e7fe22bc38534a6005d451a 100644
(file)
--- a/
src/tincd.c
+++ b/
src/tincd.c
@@
-246,9
+246,7
@@
static bool parse_options(int argc, char **argv) {
}
static bool drop_privs(void) {
-#ifdef HAVE_MINGW
- return false;
-#else
+#ifndef HAVE_MINGW
uid_t uid = 0;
if (switchuser) {
struct passwd *pw = getpwnam(switchuser);