Module Name: src
Committed By: bouyer
Date: Sat Sep 24 13:04:51 UTC 2016
Modified Files:
src/lib/libc/gen [netbsd-6]: glob.c
Log Message:
Pull up following revision(s) (requested by joerg in ticket #1404):
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.
To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.31.4.1 src/lib/libc/gen/glob.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/gen/glob.c
diff -u src/lib/libc/gen/glob.c:1.31 src/lib/libc/gen/glob.c:1.31.4.1
--- src/lib/libc/gen/glob.c:1.31 Sun Oct 30 21:53:43 2011
+++ src/lib/libc/gen/glob.c Sat Sep 24 13:04:51 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: glob.c,v 1.31 2011/10/30 21:53:43 christos Exp $ */
+/* $NetBSD: glob.c,v 1.31.4.1 2016/09/24 13:04:51 bouyer 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.31 2011/10/30 21:53:43 christos Exp $");
+__RCSID("$NetBSD: glob.c,v 1.31.4.1 2016/09/24 13:04:51 bouyer Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -87,9 +87,9 @@ __RCSID("$NetBSD: glob.c,v 1.31 2011/10/
#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 */