rpms/proftpd/devel proftpd-1.3.0-cmdbufsize.patch, NONE, 1.1 proftpd.spec, 1.20, 1.21
Matthias Saou (thias)
fedora-extras-commits at redhat.com
Mon Nov 13 18:11:05 UTC 2006
Author: thias
Update of /cvs/extras/rpms/proftpd/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1315
Modified Files:
proftpd.spec
Added Files:
proftpd-1.3.0-cmdbufsize.patch
Log Message:
Include cmdbufsize patch (#214820).
proftpd-1.3.0-cmdbufsize.patch:
--- NEW FILE proftpd-1.3.0-cmdbufsize.patch ---
--- src/main.c 2006/09/29 16:38:16 1.292
+++ src/main.c 2006/10/31 22:49:03 1.293
@@ -116,6 +116,8 @@ static unsigned char have_dead_child = F
static char sbuf[PR_TUNABLE_BUFFER_SIZE] = {'\0'};
+#define PR_DEFAULT_CMD_BUFSZ 512
+
static char **Argv = NULL;
static char *LastArgv = NULL;
static const char *PidPath = PR_PID_FILE_PATH;
@@ -832,16 +834,25 @@
pr_timer_reset(TIMER_IDLE, NULL);
if (cmd_buf_size == -1) {
- long *buf_size = get_param_ptr(main_server->conf,
- "CommandBufferSize", FALSE);
+ int *bufsz = get_param_ptr(main_server->conf, "CommandBufferSize",
+ FALSE);
- if (buf_size == NULL || *buf_size <= 0)
- cmd_buf_size = 512;
+ if (bufsz == NULL ||
+ *bufsz <= 0) {
+ pr_log_pri(PR_LOG_WARNING, "invalid CommandBufferSize size (%d) "
+ "given, resetting to default buffer size (%u)",
+ *bufsz, (unsigned int) PR_DEFAULT_CMD_BUFSZ);
+ cmd_buf_size = PR_DEFAULT_CMD_BUFSZ;
+
+ } else if (*bufsz + 1 > sizeof(buf)) {
+ pr_log_pri(PR_LOG_WARNING, "invalid CommandBufferSize size (%d) "
+ "given, resetting to default buffer size (%u)",
+ *bufsz, (unsigned int) PR_DEFAULT_CMD_BUFSZ);
+ cmd_buf_size = PR_DEFAULT_CMD_BUFSZ;
- else if (*buf_size + 1 > sizeof(buf)) {
- pr_log_pri(PR_LOG_WARNING, "Invalid CommandBufferSize size given. "
- "Resetting to 512.");
- cmd_buf_size = 512;
+ } else {
+ pr_log_debug(DEBUG1, "setting CommandBufferSize to %d", *bufsz);
+ cmd_buf_size = (long) *bufsz;
}
}
Index: proftpd.spec
===================================================================
RCS file: /cvs/extras/rpms/proftpd/devel/proftpd.spec,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- proftpd.spec 28 Aug 2006 12:28:49 -0000 1.20
+++ proftpd.spec 13 Nov 2006 18:10:35 -0000 1.21
@@ -1,7 +1,7 @@
Summary: Flexible, stable and highly-configurable FTP server
Name: proftpd
Version: 1.3.0
-Release: 7%{?dist}
+Release: 8%{?dist}
License: GPL
Group: System Environment/Daemons
URL: http://www.proftpd.org/
@@ -14,6 +14,7 @@
Source6: proftpd.pam
Patch0: proftpd-1.3.0-rpath.patch
Patch1: proftpd-1.3.0-ctrls-restart.patch
+Patch2: proftpd-1.3.0-cmdbufsize.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: pam >= 0.59
Requires(post): /sbin/chkconfig
@@ -66,6 +67,7 @@
%setup
%patch0 -p1 -b .rpath
%patch1 -p0 -b .ctrls-restart
+%patch2 -p0 -b .cmdbufsize
%build
@@ -186,6 +188,9 @@
%changelog
+* Mon Nov 13 2006 Matthias Saou <http://freshrpms.net/> 1.3.0-8
+- Include cmdbufsize patch (#214820).
+
* Mon Aug 28 2006 Matthias Saou <http://freshrpms.net/> 1.3.0-7
- FC6 rebuild.
More information about the scm-commits
mailing list