~mdw
/
termux-packages
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
apt: Fix building if perl has already been built
[termux-packages]
/
packages
/
libandroid-glob
/
glob.c
diff --git
a/packages/libandroid-glob/glob.c
b/packages/libandroid-glob/glob.c
index
cec80ed
..
0a49f2f
100644
(file)
--- a/
packages/libandroid-glob/glob.c
+++ b/
packages/libandroid-glob/glob.c
@@
-183,7
+183,7
@@
glob(const char *pattern, int flags, int (*errfunc)(const char *, int), glob_t *
if (flags & GLOB_LIMIT) {
limit = pglob->gl_matchc;
if (limit == 0)
if (flags & GLOB_LIMIT) {
limit = pglob->gl_matchc;
if (limit == 0)
- limit =
ARG_MAX
;
+ limit =
sysconf(_SC_ARG_MAX)
;
} else
limit = 0;
pglob->gl_flags = flags & ~GLOB_MAGCHAR;
} else
limit = 0;
pglob->gl_flags = flags & ~GLOB_MAGCHAR;
@@
-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
*/
* 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) ||
(h = getenv("HOME")) == NULL) {
if (((h = getlogin()) != NULL &&
(pwd = getpwnam(h)) != NULL) ||