flex: Patch Makefile.in instead of Makefile.am
[termux-packages] / packages / dpkg / dbmodify_dont_require_root.patch
CommitLineData
59f0d218
FF
1diff -u -r ../dpkg-1.17.6/lib/dpkg/dbmodify.c ./lib/dpkg/dbmodify.c
2--- ../dpkg-1.17.6/lib/dpkg/dbmodify.c 2013-12-14 06:36:07.000000000 +0100
3+++ ./lib/dpkg/dbmodify.c 2014-02-25 18:12:15.000000000 +0100
4@@ -253,8 +253,10 @@
5 switch (readwritereq) {
6 case msdbrw_needsuperuser:
7 case msdbrw_needsuperuserlockonly:
8+#ifndef __ANDROID__
9 if (getuid() || geteuid())
10 ohshit(_("requested operation requires superuser privilege"));
11+#endif
12 /* Fall through. */
13 case msdbrw_write: case msdbrw_writeifposs:
14 if (access(dpkg_db_get_dir(), W_OK)) {