From: Fredrik Fornwall Date: Mon, 4 Jan 2016 02:24:49 +0000 (-0500) Subject: libandroid-glob: issetugid() not in 64-bit libc X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/termux-packages/commitdiff_plain/1d7c3a489914f2ee7c4510d6fc25a3e8ab4956d6?ds=inline libandroid-glob: issetugid() not in 64-bit libc --- diff --git a/packages/libandroid-glob/glob.c b/packages/libandroid-glob/glob.c index cec80ed7..5e5f627c 100644 --- a/packages/libandroid-glob/glob.c +++ b/packages/libandroid-glob/glob.c @@ -391,7 +391,10 @@ globtilde(const Char *pattern, Char *patbuf, size_t patbuf_len, glob_t *pglob) * we're not running setuid or setgid) and then trying * the password file */ - if (issetugid() != 0 || + if ( +#ifndef __ANDROID__ + issetugid() != 0 || +#endif (h = getenv("HOME")) == NULL) { if (((h = getlogin()) != NULL && (pwd = getpwnam(h)) != NULL) ||