- (djm) [openbsd-compat/glob.c] restore ARG_MAX compat code.
This commit is contained in:
parent
45fcdaa1cf
commit
37f4f1892f
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue