[prev in list] [next in list] [prev in thread] [next in thread] 

List:       proftpd-committers
Subject:    [ProFTPD-committers] CVS: proftpd/modules mod_log.c,1.98,1.99
From:       "TJ Saunders" <castaglia () users ! sourceforge ! net>
Date:       2009-10-26 22:09:39
Message-ID: E1N2Xkx-0001qX-E0 () ddv4jf1 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Update of /cvsroot/proftp/proftpd/modules
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv6908/modules

Modified Files:
	mod_log.c 
Log Message:

Make the buffers used for logging and for reading client data depend on
PR_TUNABLE_PATH_MAX, which in turn depends on MAXPATHLEN (if defined by
the OS).  This makes sure that the buffers are at least large enough to
deal with the longest path supported by the OS (e.g. 4K on a Linux 2.6 kernel).


Index: mod_log.c
===================================================================
RCS file: /cvsroot/proftp/proftpd/modules/mod_log.c,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -r1.98 -r1.99
--- mod_log.c	4 Oct 2009 00:23:33 -0000	1.98
+++ mod_log.c	26 Oct 2009 22:09:36 -0000	1.99
@@ -35,7 +35,9 @@
 
 module log_module;
 
-#define EXTENDED_LOG_BUFFER_SIZE		1025
+/* Max path length plus 64 bytes for additional info. */
+#define EXTENDED_LOG_BUFFER_SIZE		(PR_TUNABLE_PATH_MAX + 64)
+
 #define EXTENDED_LOG_MODE			0644
 
 typedef struct logformat_struc	logformat_t;


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
ProFTPD Committers Mailing List
proftpd-committers@proftpd.org
https://lists.sourceforge.net/lists/listinfo/proftp-committers
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic