From: TJ S. <cas...@us...> - 2010-01-05 17:02:45
|
Update of /cvsroot/pdd/www.proftpd.org/docs/howto In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv31509 Modified Files: Globbing.html Log Message: Updating website copy of Globbing howto. Index: Globbing.html =================================================================== RCS file: /cvsroot/pdd/www.proftpd.org/docs/howto/Globbing.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** Globbing.html 17 Aug 2007 00:11:26 -0000 1.1 --- Globbing.html 5 Jan 2010 17:02:36 -0000 1.2 *************** *** 99,109 **** </pre> And, for the paranoid system administrator, a way of limiting the number ! of directories supported in a globbing expression was added in <code>1.2.8rc1</code>: <code>PR_TUNABLE_GLOBBING_MAX</code>. By default, the maximum number ! of levels supported is 8 (this is the hardcoded default in the GNU library ! implementation of globbing). To change this to a lower number, compile <code>proftpd</code> using a <code>configure</code> line that looks something like this: <pre> ! CFLAGS="-DPR_TUNABLE_GLOBBING_MAX=3" ./configure ... </pre> A globbing expression that contains more than the maximum number of supported --- 99,109 ---- </pre> And, for the paranoid system administrator, a way of limiting the number ! of directories supported in a globbing expression was added in <code>1.2.8rc1</code>: <code>PR_TUNABLE_GLOBBING_MAX_RECURSION</code>. By default, the maximum ! number of levels supported is 8 (this is the hardcoded default in the GNU ! library implementation of globbing). To change this to a lower number, compile <code>proftpd</code> using a <code>configure</code> line that looks something like this: <pre> ! ./configure CFLAGS="-DPR_TUNABLE_GLOBBING_MAX_RECURSION=3" ... </pre> A globbing expression that contains more than the maximum number of supported *************** *** 113,116 **** --- 113,130 ---- <p> + There is a similar limit on the maximum number of matches for a glob + expression. By default, this limit is 100000 (the hardcoded default in + the GNU library <code>glob(3)</code> implementation). In the + <code>1.3.3rc1</code> ProFTPD release, a way of altering this limit was + added: <code>PR_TUNABLE_GLOBBING_MAX_MATCHES</code>. For sites which really + do require a higher number of matches for their glob expressions, the + following <code>configure</code> command can be used: + <pre> + ./configure CFLAGS="-DPR_TUNABLE_GLOBBING_MAX_MATCHES=200000UL" ... + </pre> + A globbing expression that matches more than this limit will have the + number of matches silently truncated to the limit (or just below). + + <p> <hr> Last Updated: <i>$Date$</i><br> |