2019-05-18 10:31:22 +02:00
|
|
|
--- ../locate.c.orig
|
|
|
|
+++ ./src/locate.c
|
2019-05-18 10:24:17 +02:00
|
|
|
@@ -945,8 +945,10 @@
|
|
|
|
static void
|
|
|
|
drop_setgid (void)
|
|
|
|
{
|
|
|
|
+#if !defined(__ANDROID__)
|
|
|
|
if (setgid (getgid ()) != 0)
|
|
|
|
error (EXIT_FAILURE, errno, _("can not drop privileges"));
|
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Handle a conf_dbpath ENTRY, drop privileges when they are no longer
|