Browse Source

libandroid-glob: issetugid() not in 64-bit libc

android-5
Fredrik Fornwall 9 years ago
parent
commit
1d7c3a4899
  1. 5
      packages/libandroid-glob/glob.c

5
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 * we're not running setuid or setgid) and then trying
* the password file * the password file
*/ */
if (issetugid() != 0 || if (
#ifndef __ANDROID__
issetugid() != 0 ||
#endif
(h = getenv("HOME")) == NULL) { (h = getenv("HOME")) == NULL) {
if (((h = getlogin()) != NULL && if (((h = getlogin()) != NULL &&
(pwd = getpwnam(h)) != NULL) || (pwd = getpwnam(h)) != NULL) ||

Loading…
Cancel
Save