From 1d7c3a489914f2ee7c4510d6fc25a3e8ab4956d6 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sun, 3 Jan 2016 21:24:49 -0500 Subject: [PATCH] libandroid-glob: issetugid() not in 64-bit libc --- packages/libandroid-glob/glob.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) || -- 2.11.0