1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-12 23:36:39 +00:00
termux-packages/packages/mlocate/no_getid.patch
2019-05-18 10:31:22 +02:00

14 lines
305 B
Diff

--- ../locate.c.orig
+++ ./src/locate.c
@@ -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