X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Ftincd.c;h=566031a3ddeb170645e1a17736ae467fb023963e;hp=7b74cd6ca7e97b6df7844e6b3dbeaa8f8b2f6ad5;hb=afe4bf62eccab76c75e5a661fb2c16f1391a8417;hpb=c6720f1a608d19c722d8601fab1048773dbad59b diff --git a/src/tincd.c b/src/tincd.c index 7b74cd6c..566031a3 100644 --- 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 */