projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6760cf
)
Use __ANDROID__ define rather than dirty hard-code to allow android NDK cross-compila...
author
Vilbrekin
<vilbrekin@gmail.com>
Sat, 25 Aug 2012 18:01:11 +0000
(20:01 +0200)
committer
Vilbrekin
<vilbrekin@gmail.com>
Sat, 25 Aug 2012 18:01:11 +0000
(20:01 +0200)
src/tincd.c
patch
|
blob
|
history
diff --git
a/src/tincd.c
b/src/tincd.c
index
7b74cd6
..
566031a
100644
(file)
--- a/
src/tincd.c
+++ b/
src/tincd.c
@@
-467,9
+467,11
@@
static bool drop_privs() {
"initgroups", strerror(errno));
return false;
}
- // Not supported in android NDK
- //endgrent();
- //endpwent();
+#ifndef __ANDROID__
+// Not supported in android NDK
+ endgrent();
+ endpwent();
+#endif
}
if (do_chroot) {
tzset(); /* for proper timestamps in logs */