- (djm) [openbsd-compat/glob.c] restore ARG_MAX compat code.

This commit is contained in:
Damien Miller 2010-10-07 22:10:38 +11:00
parent 45fcdaa1cf
commit 37f4f1892f
2 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@
- djm@cvs.openbsd.org 2010/10/06 21:10:21
[sshconnect.c]
swapped args to kill(2)
- (djm) [openbsd-compat/glob.c] restore ARG_MAX compat code.
20100924
- (djm) OpenBSD CVS Sync

View File

@ -804,7 +804,7 @@ globextend(const Char *path, glob_t *pglob, size_t *limitp, struct stat *sb)
pathv[pglob->gl_offs + pglob->gl_pathc] = NULL;
if ((pglob->gl_flags & GLOB_LIMIT) &&
(newn * sizeof(*pathv)) + *limitp >= ARG_MAX) {
(newn * sizeof(*pathv)) + *limitp >= (u_int) get_arg_max()) {
errno = 0;
return(GLOB_NOSPACE);
}