Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-7-0]: src/lib/libc/gen Pull up following revision(s) (requested b...



details:   https://anonhg.NetBSD.org/src/rev/4d5e4fb55a4a
branches:  netbsd-7-0
changeset: 801235:4d5e4fb55a4a
user:      snj <snj%NetBSD.org@localhost>
date:      Sun Nov 13 07:10:09 2016 +0000

description:
Pull up following revision(s) (requested by joerg in ticket #1247):
        lib/libc/gen/glob.c: revision 1.36
Bump the glob limits to 512KB for total string size and 64K path
entries. The old limits were too small for some important FTP use cases
like a pkgsrc repository.

diffstat:

 lib/libc/gen/glob.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r bd55c010b13f -r 4d5e4fb55a4a lib/libc/gen/glob.c
--- a/lib/libc/gen/glob.c       Sat Nov 05 17:48:23 2016 +0000
+++ b/lib/libc/gen/glob.c       Sun Nov 13 07:10:09 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: glob.c,v 1.35 2013/03/20 23:44:47 lukem Exp $  */
+/*     $NetBSD: glob.c,v 1.35.10.1 2016/11/13 07:10:09 snj Exp $       */
 
 /*
  * Copyright (c) 1989, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)glob.c     8.3 (Berkeley) 10/13/93";
 #else
-__RCSID("$NetBSD: glob.c,v 1.35 2013/03/20 23:44:47 lukem Exp $");
+__RCSID("$NetBSD: glob.c,v 1.35.10.1 2016/11/13 07:10:09 snj Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -87,9 +87,9 @@
 #define NO_GETPW_R
 #endif
 
-#define        GLOB_LIMIT_STRING       65536   /* number of readdirs */
+#define        GLOB_LIMIT_STRING       524288  /* number of readdirs */
 #define        GLOB_LIMIT_STAT         128     /* number of stat system calls */
-#define        GLOB_LIMIT_READDIR      16384   /* total buffer size of path strings */
+#define        GLOB_LIMIT_READDIR      65536   /* total buffer size of path strings */
 #define        GLOB_LIMIT_PATH         1024    /* number of path elements */
 #define GLOB_LIMIT_BRACE       128     /* Number of brace calls */
 



Home | Main Index | Thread Index | Old Index