public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/proftpd] f45: Update to 1.3.9f
@ 2026-11-23 16:35 Paul Howarth
0 siblings, 0 replies; only message in thread
From: Paul Howarth @ 2026-11-23 16:35 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/proftpd
Branch : f45
Commit : 6faffc4d5d0b7fd0cff9ec2e1acb335c3efa9ead
Author : Paul Howarth <paul@city-fan.org>
Date : 2026-11-23T16:20:55+00:00
Stats : +32/-684 in 8 file(s)
URL : https://src.fedoraproject.org/rpms/proftpd/c/6faffc4d5d0b7fd0cff9ec2e1acb335c3efa9ead?branch=f45
Log:
Update to 1.3.9f
- New upstream release 1.3.9f
- Fix mod_sftp regression with handling of OpenSSH-specific private key
format leading to unexpected passphrase prompting on startup (GH#2411)
- FTPS data transfers over TLSv1.3 failed with older OpenSSL 1.x versions
(GH#2416)
- <Limit WRITE> configurations were not honored for symlinks by SITE COPY as
they should be (GH#2374)
- Use of pwrite(2) for O_APPEND SFTP WRITE requests is not portable (GH#2432)
- Fix segfault after SSH key exchange when SFTPCompression is configured in
<Global> context; this was a regression caused by GH#2366 (GH#2445)
- SFTP OPEN request with CREAT|EXCL flags on an existing file succeeded
unexpectedly when HiddenStores configured (GH#2456)
- Unexpected mod_xfer module load order lead to SIGSEGV if session was
terminated during a file transfer (GH#2360)
- Stack overflow possible with bundled glob(3) brace expansion implementation
(GH#2473)
---
diff --git a/.gitignore b/.gitignore
index 5e08dca..ddbdd71 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,5 @@
# rawhide/f45/f44/f43/epel10
-/proftpd-1.3.9e.tar.gz
+/proftpd-1.3.9f.tar.gz
/v0.9.12.tar.gz
/v0.9.7.tar.gz
/v0.3.tar.gz
diff --git a/549f8174.patch b/549f8174.patch
deleted file mode 100644
index ed7c33e..0000000
--- a/549f8174.patch
+++ /dev/null
@@ -1,241 +0,0 @@
-From 549f81741f930acab56dfb4620c7603de05c20f2 Mon Sep 17 00:00:00 2001
-From: TJ Saunders <tj@castaglia.org>
-Date: Wed, 18 Nov 2026 13:28:36 -0800
-Subject: [PATCH] Issue #2473: Backport a fix from glibc `glob(3)` for handling
- unbalanced brace expansions.
-
----
- lib/glibc-glob.c | 97 ++++++++++++++++++++++++------------------------
- tests/api/fsio.c | 17 +++++++--
- 2 files changed, 62 insertions(+), 52 deletions(-)
-
-diff --git a/lib/glibc-glob.c b/lib/glibc-glob.c
-index 6f676e2df8..23edf1410a 100644
---- a/lib/glibc-glob.c
-+++ b/lib/glibc-glob.c
-@@ -354,12 +354,8 @@ extern int getlogin_r __P ((char *, size_t));
- #else
- extern char *getlogin __P ((void));
- #endif
--\f
--static
--#if __GNUC__ - 0 >= 2
--inline
--#endif
--const char *next_brace_sub __P ((const char *begin));
-+
-+static const char *next_brace_sub __P ((const char *begin, int flags));
-
- #endif /* GLOB_ONLY_P */
-
-@@ -380,48 +376,29 @@ static int __glob_pattern_p (const char *pattern, int quote);
- static int prefix_array __P ((const char *prefix, char **array, size_t n));
- static int collated_compare __P ((const __ptr_t, const __ptr_t));
-
--/* Find the end of the sub-pattern in a brace expression. We define
-- this as an inline function if the compiler permits. */
--static
--#if __GNUC__ - 0 >= 2
--inline
--#endif
--const char *
--next_brace_sub (const char *begin)
-+/* Find the end of the sub-pattern in a brace expression. */
-+static const char *
-+next_brace_sub (const char *cp, int flags)
- {
- unsigned int depth = 0;
-- const char *cp = begin;
-
-- while (1)
-- {
-- if (depth == 0)
-- {
-- if (*cp != ',' && *cp != '}' && *cp != '\0')
-- {
-- if (*cp == '{')
-- ++depth;
-- ++cp;
-- continue;
-- }
-- }
-- else
-- {
-- while (*cp != '\0' && (*cp != '}' || depth > 0))
-- {
-- if (*cp == '}')
-- --depth;
-- ++cp;
-- }
-- if (*cp == '\0')
-- /* An incorrectly terminated brace expression. */
-- return NULL;
-+ while (*cp != '\0')
-+ if ((flags & GLOB_NOESCAPE) == 0 && *cp == '\\')
-+ {
-+ if (*++cp == '\0')
-+ break;
-+ ++cp;
-+ }
-+ else
-+ {
-+ if ((*cp == '}' && depth-- == 0) || (*cp == ',' && depth == 0))
-+ break;
-
-- continue;
-- }
-- break;
-- }
-+ if (*cp++ == '{')
-+ depth++;
-+ }
-
-- return cp;
-+ return *cp != '\0' ? cp : NULL;
- }
-
- #endif /* !GLOB_ONLY_P */
-@@ -460,7 +437,30 @@ glob_limited (unsigned int depth, const char *pattern, int flags,
-
- if (flags & GLOB_BRACE)
- {
-- const char *begin = strchr (pattern, '{');
-+ const char *begin;
-+
-+ if (flags & GLOB_NOESCAPE)
-+ begin = strchr (pattern, '{');
-+ else
-+ {
-+ begin = pattern;
-+ while (1)
-+ {
-+ if (*begin == '\0')
-+ {
-+ begin = NULL;
-+ break;
-+ }
-+
-+ if (*begin == '\\' && begin[1] != '\0')
-+ ++begin;
-+ else if (*begin == '{')
-+ break;
-+
-+ ++begin;
-+ }
-+ }
-+
- if (begin != NULL)
- {
- /* Allocate working buffer large enough for our work. Note that
-@@ -493,7 +493,7 @@ glob_limited (unsigned int depth, const char *pattern, int flags,
-
- /* Find the first sub-pattern and at the same time find the
- rest after the closing brace. */
-- next = next_brace_sub (begin + 1);
-+ next = next_brace_sub (begin + 1, flags);
- if (next == NULL)
- {
- /* It is an illegal expression. */
-@@ -507,7 +507,7 @@ glob_limited (unsigned int depth, const char *pattern, int flags,
- rest = next;
- while (*rest != '}')
- {
-- rest = next_brace_sub (rest + 1);
-+ rest = next_brace_sub (rest + 1, flags);
- if (rest == NULL)
- {
- /* It is an illegal expression. */
-@@ -569,7 +569,7 @@ glob_limited (unsigned int depth, const char *pattern, int flags,
- break;
-
- p = next + 1;
-- next = next_brace_sub (p);
-+ next = next_brace_sub (p, flags);
- assert (next != NULL);
- }
-
-@@ -797,7 +797,7 @@ glob_limited (unsigned int depth, const char *pattern, int flags,
- # if !defined _AMIGA && !defined WINDOWS32
- else
- {
-- char *end_name = strchr (dirname, '/');
-+ char *end_name = (char *) strchr (dirname, '/');
- const char *user_name;
- const char *home_dir;
-
-@@ -1174,6 +1174,7 @@ globfree (register glob_t *pglob)
- if (pglob->gl_pathv[pglob->gl_offs + i] != NULL)
- free ((__ptr_t) pglob->gl_pathv[pglob->gl_offs + i]);
- free ((__ptr_t) pglob->gl_pathv);
-+ pglob->gl_pathv = NULL;
- }
- }
-
-diff --git a/tests/api/fsio.c b/tests/api/fsio.c
-index 8a4f01c39c..547f793cb4 100644
---- a/tests/api/fsio.c
-+++ b/tests/api/fsio.c
-@@ -3926,28 +3926,35 @@ START_TEST (fs_glob_test) {
- glob_t pglob;
- int res;
-
-+ mark_point();
- res = pr_fs_glob(NULL, 0, NULL, NULL);
- ck_assert_msg(res < 0, "Failed to handle null arguments");
- ck_assert_msg(errno == EINVAL, "Expected EINVAL (%d), got %s (%d)", EINVAL,
- strerror(errno), errno);
-
-+ mark_point();
- res = pr_fs_glob(NULL, 0, NULL, &pglob);
- ck_assert_msg(res < 0, "Failed to handle null arguments");
- ck_assert_msg(errno == EINVAL, "Expected EINVAL (%d), got %s (%d)", EINVAL,
- strerror(errno), errno);
-
-+ mark_point();
- memset(&pglob, 0, sizeof(pglob));
- res = pr_fs_glob("*", 0, NULL, &pglob);
- ck_assert_msg(res == 0, "Failed to glob: glob(3) returned %d: %s", res,
- strerror(errno));
- ck_assert_msg(pglob.gl_pathc > 0, "Expected >0, got %lu",
- (unsigned long) pglob.gl_pathc);
-+ pr_fs_globfree(&pglob);
-+
-+ mark_point();
-+ memset(&pglob, 0, sizeof(pglob));
-+ res = pr_fs_glob("{a,", GLOB_NOSORT|GLOB_BRACE, NULL, &pglob);
-+ ck_assert_msg(res == GLOB_NOMATCH, "Expected GLOB_NOMATCH, got %d", res);
-+ pr_fs_globfree(&pglob);
-
- mark_point();
- pr_fs_globfree(NULL);
-- if (res == 0) {
-- pr_fs_globfree(&pglob);
-- }
- }
- END_TEST
-
-@@ -4948,6 +4955,7 @@ START_TEST (fs_have_access_test) {
- }
- END_TEST
-
-+#if defined(HAVE_STATFS_F_TYPE) || defined(HAVE_STATFS_F_FSTYPENAME)
- START_TEST (fs_is_nfs_test) {
- int res;
-
-@@ -4960,6 +4968,7 @@ START_TEST (fs_is_nfs_test) {
- ck_assert_msg(res == FALSE, "Expected FALSE, got %d", res);
- }
- END_TEST
-+#endif /* HAVE_STATFS_F_TYPE or HAVE_STATFS_F_FSTYPENAME */
-
- START_TEST (fs_valid_path_test) {
- int res;
-@@ -5461,7 +5470,7 @@ Suite *tests_get_fsio_suite(void) {
- tcase_add_test(testcase, fs_have_access_test);
- #if defined(HAVE_STATFS_F_TYPE) || defined(HAVE_STATFS_F_FSTYPENAME)
- tcase_add_test(testcase, fs_is_nfs_test);
--#endif
-+#endif /* HAVE_STATFS_F_TYPE or HAVE_STATFS_F_FSTYPENAME */
- tcase_add_test(testcase, fs_valid_path_test);
- tcase_add_test(testcase, fsio_smkdir_test);
- tcase_add_test(testcase, fsio_getpipebuf_test);
diff --git a/58c9a9cb.patch b/58c9a9cb.patch
deleted file mode 100644
index bf93a3c..0000000
--- a/58c9a9cb.patch
+++ /dev/null
@@ -1,167 +0,0 @@
-From 58c9a9cb1c3f45c1d31eeb7b833c725184f5ea64 Mon Sep 17 00:00:00 2001
-From: TJ Saunders <tj@castaglia.org>
-Date: Wed, 18 Nov 2026 14:26:37 -0800
-Subject: [PATCH] In light of Issue #2473, I went through other changes to the
- stock glibc `glob(3)` implementation, looking for anything else that might
- bite us.
-
-Nothing in particular stood out, but I chose some of the fixes to apply, as a defensive measure.
----
- lib/glibc-glob.c | 47 ++++++++++++++++++++++++++---------------------
- src/fsio.c | 12 ++++++++++++
- tests/api/fsio.c | 27 +++++++++++++++++++++++++++
- 3 files changed, 65 insertions(+), 21 deletions(-)
-
-diff --git a/lib/glibc-glob.c b/lib/glibc-glob.c
-index 23edf1410..ddcc40582 100644
---- a/lib/glibc-glob.c
-+++ b/lib/glibc-glob.c
-@@ -430,6 +430,11 @@ glob_limited (unsigned int depth, const char *pattern, int flags,
- return -1;
- }
-
-+ /* POSIX requires all slashes to be matched. This means that with
-+ a trailing slash we must match only directories. */
-+ if (pattern[0] && pattern[strlen (pattern) - 1] == '/')
-+ flags |= GLOB_ONLYDIR;
-+
- if (!(flags & GLOB_DOOFFS))
- /* Have to do this so `globfree' knows where to start freeing. It
- also makes all the code that uses gl_offs simpler. */
-@@ -585,6 +590,26 @@ glob_limited (unsigned int depth, const char *pattern, int flags,
- }
- }
-
-+ if (!(flags & GLOB_APPEND))
-+ {
-+ pglob->gl_pathc = 0;
-+ if (!(flags & GLOB_DOOFFS))
-+ pglob->gl_pathv = NULL;
-+ else
-+ {
-+ size_t i;
-+ pglob->gl_pathv = (char **) malloc ((pglob->gl_offs + 1)
-+ * sizeof (char *));
-+ if (pglob->gl_pathv == NULL)
-+ return GLOB_NOSPACE;
-+
-+ for (i = 0; i <= pglob->gl_offs; ++i)
-+ pglob->gl_pathv[i] = NULL;
-+ }
-+ }
-+
-+ oldcount = pglob->gl_pathc + pglob->gl_offs;
-+
- /* Find the filename. */
- filename = strrchr (pattern, '/');
- #if defined __MSDOS__ || defined WINDOWS32
-@@ -681,26 +706,6 @@ glob_limited (unsigned int depth, const char *pattern, int flags,
- }
- }
-
-- if (!(flags & GLOB_APPEND))
-- {
-- pglob->gl_pathc = 0;
-- if (!(flags & GLOB_DOOFFS))
-- pglob->gl_pathv = NULL;
-- else
-- {
-- size_t i;
-- pglob->gl_pathv = (char **) malloc ((pglob->gl_offs + 1)
-- * sizeof (char *));
-- if (pglob->gl_pathv == NULL)
-- return GLOB_NOSPACE;
--
-- for (i = 0; i <= pglob->gl_offs; ++i)
-- pglob->gl_pathv[i] = NULL;
-- }
-- }
--
-- oldcount = pglob->gl_pathc + pglob->gl_offs;
--
- #ifndef VMS
- if ((flags & (GLOB_TILDE|GLOB_TILDE_CHECK)) && dirname[0] == '~')
- {
-@@ -808,7 +813,7 @@ glob_limited (unsigned int depth, const char *pattern, int flags,
- char *newp;
- newp = (char *) __alloca (end_name - dirname);
- # ifdef HAVE_MEMPCPY
-- *((char *) mempcpy (newp, dirname + 1, end_name - dirname))
-+ *((char *) mempcpy (newp, dirname + 1, end_name - dirname - 1))
- = '\0';
- # else
- memcpy (newp, dirname + 1, end_name - dirname);
-diff --git a/src/fsio.c b/src/fsio.c
-index 2e38253f1..8a0d9bd65 100644
---- a/src/fsio.c
-+++ b/src/fsio.c
-@@ -4949,6 +4949,18 @@ int pr_fs_glob(const char *pattern, int flags,
- return -1;
- }
-
-+ /* The GLOB_TILDE flag has encountered many issues over the years.
-+ * None of the core code uses this flag, so let's preemptively prevent its
-+ * usage altogether.
-+ */
-+ if (flags & GLOB_TILDE) {
-+ flags &= ~GLOB_TILDE;
-+ }
-+
-+ if (flags & GLOB_TILDE_CHECK) {
-+ flags &= ~GLOB_TILDE_CHECK;
-+ }
-+
- flags |= GLOB_ALTDIRFUNC;
-
- pglob->gl_closedir = (void (*)(void *)) pr_fsio_closedir;
-diff --git a/tests/api/fsio.c b/tests/api/fsio.c
-index 547f793cb..376798e47 100644
---- a/tests/api/fsio.c
-+++ b/tests/api/fsio.c
-@@ -3925,6 +3925,7 @@ END_TEST
- START_TEST (fs_glob_test) {
- glob_t pglob;
- int res;
-+ char buf[16382];
-
- mark_point();
- res = pr_fs_glob(NULL, 0, NULL, NULL);
-@@ -3947,12 +3948,38 @@ START_TEST (fs_glob_test) {
- (unsigned long) pglob.gl_pathc);
- pr_fs_globfree(&pglob);
-
-+ /* See Issue #2473. */
- mark_point();
- memset(&pglob, 0, sizeof(pglob));
- res = pr_fs_glob("{a,", GLOB_NOSORT|GLOB_BRACE, NULL, &pglob);
- ck_assert_msg(res == GLOB_NOMATCH, "Expected GLOB_NOMATCH, got %d", res);
- pr_fs_globfree(&pglob);
-
-+ mark_point();
-+ memset(buf, '/', sizeof(buf)-1);
-+ buf[sizeof(buf)-1] = '\0';
-+ memset(&pglob, 0, sizeof(pglob));
-+ res = pr_fs_glob(buf, 0, NULL, &pglob);
-+ ck_assert_msg(res == GLOB_NOSPACE, "Expected GLOB_NOSPACE, got %d", res);
-+ pr_fs_globfree(&pglob);
-+
-+ mark_point();
-+ memset(buf, '/', sizeof(buf)-1);
-+ buf[1] = '*';
-+ buf[sizeof(buf)-3] = 's';
-+ buf[sizeof(buf)-2] = 'h';
-+ buf[sizeof(buf)-1] = '\0';
-+ memset(&pglob, 0, sizeof(pglob));
-+ res = pr_fs_glob(buf, 0, NULL, &pglob);
-+ ck_assert_msg(res == GLOB_NOSPACE, "Expected GLOB_NOSPACE, got %d", res);
-+ pr_fs_globfree(&pglob);
-+
-+ mark_point();
-+ memset(&pglob, 0, sizeof(pglob));
-+ res = pr_fs_glob("", 0, NULL, &pglob);
-+ ck_assert_msg(res == 0, "Expected 0, got %d", res);
-+ pr_fs_globfree(&pglob);
-+
- mark_point();
- pr_fs_globfree(NULL);
- }
diff --git a/933abc9a.patch b/933abc9a.patch
deleted file mode 100644
index 2b045dd..0000000
--- a/933abc9a.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 933abc9ae115ffc59e4b2a98495ec267bf341d23 Mon Sep 17 00:00:00 2001
-From: TJ Saunders <tj@castaglia.org>
-Date: Tue, 27 Oct 2026 12:56:31 -0700
-Subject: [PATCH] Issue #2411: Fix regression in the handling of private keys
- formatted using the OpenSSH-specific private key format, and which are not
- passphrase-protected.
-
----
- contrib/mod_sftp/keys.c | 6 ++++--
- 1 file changed, 4 insertions(+), 2 deletions(-)
-
-diff --git a/contrib/mod_sftp/keys.c b/contrib/mod_sftp/keys.c
-index 5e848a84d..af842926b 100644
---- a/contrib/mod_sftp/keys.c
-+++ b/contrib/mod_sftp/keys.c
-@@ -3093,8 +3093,10 @@ static int decrypt_openssh_data(pool *p, const char *path,
- uint32_t buflen, key_len, rounds, salt_len;
- size_t passphrase_len;
-
-- if (encrypted_data == NULL ||
-- kdf_data == NULL) {
-+ /* Note: kdf_data CAN legitimately be NULL here, as for keys which
-+ * are not passphrase-encrypted (Issue #2411).
-+ */
-+ if (encrypted_data == NULL) {
- pr_trace_msg(trace_channel, 3,
- "'%s' key is missing required data", path);
- errno = EINVAL;
diff --git a/proftpd-1.3.9e-gh2095.patch b/proftpd-1.3.9e-gh2095.patch
deleted file mode 100644
index 54debae..0000000
--- a/proftpd-1.3.9e-gh2095.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-diff --git a/contrib/mod_copy.c b/contrib/mod_copy.c
-index bf725eebae..dd770c029d 100644
---- a/contrib/mod_copy.c
-+++ b/contrib/mod_copy.c
-@@ -571,7 +571,7 @@ MODRET copy_copy(cmd_rec *cmd) {
- return PR_DECLINED(cmd);
- }
-
-- if (strncasecmp(cmd->argv[1], "COPY", 5) == 0) {
-+ if (strcasecmp(cmd->argv[1], "COPY") == 0) {
- char *cmd_name, *decoded_path, *from, *to;
- unsigned char *authenticated;
-
-@@ -625,14 +625,31 @@ MODRET copy_copy(cmd_rec *cmd) {
-
- to = dir_canonical_vpath(cmd->tmp_pool, decoded_path);
-
-+ cmd_name = cmd->argv[0];
-+ pr_cmd_set_name(cmd, "SITE_COPY");
-+ if (!dir_check(cmd->tmp_pool, cmd, G_READ, from, NULL)) {
-+ int xerrno = EPERM;
-+
-+ pr_cmd_set_name(cmd, cmd_name);
-+ pr_log_debug(DEBUG8, "%s %s denied by <Limit> configuration",
-+ (char *) cmd->argv[0], from);
-+ pr_response_add_err(R_550, "%s: %s", (char *) cmd->argv[2],
-+ strerror(xerrno));
-+
-+ pr_cmd_set_errno(cmd, xerrno);
-+ errno = xerrno;
-+ return PR_ERROR(cmd);
-+ }
-+ pr_cmd_set_name(cmd, cmd_name);
-+
- cmd_name = cmd->argv[0];
- pr_cmd_set_name(cmd, "SITE_COPY");
- if (!dir_check(cmd->tmp_pool, cmd, G_WRITE, to, NULL)) {
- int xerrno = EPERM;
-
- pr_cmd_set_name(cmd, cmd_name);
-- pr_log_debug(DEBUG8, "%s denied by <Limit> configuration",
-- (char *) cmd->argv[0]);
-+ pr_log_debug(DEBUG8, "%s %s denied by <Limit> configuration",
-+ (char *) cmd->argv[0], to);
- pr_response_add_err(R_550, "%s: %s", (char *) cmd->argv[3],
- strerror(xerrno));
-
diff --git a/proftpd-1.3.9e-gh2374.patch b/proftpd-1.3.9e-gh2374.patch
deleted file mode 100644
index 53648f5..0000000
--- a/proftpd-1.3.9e-gh2374.patch
+++ /dev/null
@@ -1,162 +0,0 @@
-commit 191e11052229004599b00f71400c4ba3f038bbac
-Author: TJ Saunders <tj@castaglia.org>
-Date: Tue May 19 17:16:11 2026 -0700
-
- While working on mod_copy, I added a regression test for `<Anonymous>` configurations, and noticed some logging nits, now addressed.
-
-diff --git a/contrib/mod_copy.c b/contrib/mod_copy.c
-index dd770c029..024070911 100644
---- a/contrib/mod_copy.c
-+++ b/contrib/mod_copy.c
-@@ -631,8 +631,8 @@ MODRET copy_copy(cmd_rec *cmd) {
- int xerrno = EPERM;
-
- pr_cmd_set_name(cmd, cmd_name);
-- pr_log_debug(DEBUG8, "%s %s denied by <Limit> configuration",
-- (char *) cmd->argv[0], from);
-+ pr_log_debug(DEBUG8, "%s %s %s denied by <Limit> configuration",
-+ (char *) cmd->argv[0], (char *) cmd->argv[1], from);
- pr_response_add_err(R_550, "%s: %s", (char *) cmd->argv[2],
- strerror(xerrno));
-
-@@ -648,8 +648,8 @@ MODRET copy_copy(cmd_rec *cmd) {
- int xerrno = EPERM;
-
- pr_cmd_set_name(cmd, cmd_name);
-- pr_log_debug(DEBUG8, "%s %s denied by <Limit> configuration",
-- (char *) cmd->argv[0], to);
-+ pr_log_debug(DEBUG8, "%s %s %s denied by <Limit> configuration",
-+ (char *) cmd->argv[0], (char *) cmd->argv[1], to);
- pr_response_add_err(R_550, "%s: %s", (char *) cmd->argv[3],
- strerror(xerrno));
-
-@@ -697,7 +697,7 @@ MODRET copy_cpfr(cmd_rec *cmd) {
- }
-
- if (cmd->argc < 3 ||
-- strncasecmp(cmd->argv[1], "CPFR", 5) != 0) {
-+ strcasecmp(cmd->argv[1], "CPFR") != 0) {
- return PR_DECLINED(cmd);
- }
-
-@@ -743,10 +743,9 @@ MODRET copy_cpfr(cmd_rec *cmd) {
- int xerrno = EPERM;
-
- pr_cmd_set_name(cmd, cmd_name);
-- pr_log_debug(DEBUG8, "%s denied by <Limit> configuration",
-- (char *) cmd->argv[0]);
-- pr_response_add_err(R_550, "%s: %s", (char *) cmd->argv[3],
-- strerror(xerrno));
-+ pr_log_debug(DEBUG8, "%s %s %s denied by <Limit> configuration",
-+ (char *) cmd->argv[0], (char *) cmd->argv[1], path);
-+ pr_response_add_err(R_550, "%s: %s", path, strerror(xerrno));
-
- pr_cmd_set_errno(cmd, xerrno);
- errno = xerrno;
-@@ -806,7 +805,7 @@ MODRET copy_cpfr(cmd_rec *cmd) {
-
- MODRET copy_cpto(cmd_rec *cmd) {
- register unsigned int i;
-- const char *from, *to = "";
-+ const char *from, *to = "", *resolved_to;
- char *cmd_name;
- unsigned char *authenticated = NULL;
-
-@@ -815,7 +814,7 @@ MODRET copy_cpto(cmd_rec *cmd) {
- }
-
- if (cmd->argc < 3 ||
-- strncasecmp(cmd->argv[1], "CPTO", 5) != 0) {
-+ strcasecmp(cmd->argv[1], "CPTO") != 0) {
- return PR_DECLINED(cmd);
- }
-
-@@ -864,16 +863,16 @@ MODRET copy_cpto(cmd_rec *cmd) {
- to = pstrcat(cmd->tmp_pool, to, *to ? " " : "", decoded_path, NULL);
- }
-
-- to = dir_canonical_vpath(cmd->tmp_pool, to);
-+ resolved_to = dir_canonical_vpath(cmd->tmp_pool, to);
-
- cmd_name = cmd->argv[0];
- pr_cmd_set_name(cmd, "SITE_CPTO");
-- if (!dir_check(cmd->tmp_pool, cmd, G_WRITE, to, NULL)) {
-+ if (!dir_check(cmd->tmp_pool, cmd, G_WRITE, resolved_to, NULL)) {
- int xerrno = EPERM;
-
- pr_cmd_set_name(cmd, cmd_name);
-- pr_log_debug(DEBUG8, "%s denied by <Limit> configuration",
-- (char *) cmd->argv[0]);
-+ pr_log_debug(DEBUG8, "%s %s %s denied by <Limit> configuration",
-+ (char *) cmd->argv[0], (char *) cmd->argv[1], to);
- pr_response_add_err(R_550, "%s: %s", to, strerror(xerrno));
-
- pr_cmd_set_errno(cmd, xerrno);
-@@ -882,12 +881,12 @@ MODRET copy_cpto(cmd_rec *cmd) {
- }
- pr_cmd_set_name(cmd, cmd_name);
-
-- if (copy_paths(cmd->tmp_pool, from, to) < 0) {
-+ if (copy_paths(cmd->tmp_pool, from, resolved_to) < 0) {
- int xerrno = errno;
- const char *err_code = R_550;
-
- pr_log_debug(DEBUG7, MOD_COPY_VERSION
-- ": error copying '%s' to '%s': %s", from, to, strerror(xerrno));
-+ ": error copying '%s' to '%s': %s", from, resolved_to, strerror(xerrno));
-
- /* Check errno for EDQOUT (or the most appropriate alternative).
- * (I hate the fact that FTP has a special response code just for
-@@ -912,8 +911,8 @@ MODRET copy_cpto(cmd_rec *cmd) {
- break;
- }
-
-- pr_response_add_err(err_code, "%s: %s", (char *) cmd->argv[1],
-- strerror(xerrno));
-+ pr_response_add_err(err_code, "%s %s: %s", (char *) cmd->argv[0],
-+ (char *) cmd->argv[1], strerror(xerrno));
-
- pr_cmd_set_errno(cmd, xerrno);
- errno = xerrno;
-From c41691f8981f98081fcb8a535c3c21b06a3f04af Mon Sep 17 00:00:00 2001
-From: TJ Saunders <tj@castaglia.org>
-Date: Sat, 17 Oct 2026 13:12:56 -0700
-Subject: [PATCH] Issue #2374: Resolve the destination path in order to handle
- any potential symlinks, and use the resolved path for <Limit> checks.
-
----
- contrib/mod_copy.c | 14 ++++++++++++--
- 1 file changed, 12 insertions(+), 2 deletions(-)
-
-diff --git a/contrib/mod_copy.c b/contrib/mod_copy.c
-index 51d62107e5..70f704f39a 100644
---- a/contrib/mod_copy.c
-+++ b/contrib/mod_copy.c
-@@ -593,7 +593,12 @@ MODRET copy_copy(cmd_rec *cmd) {
- return PR_ERROR(cmd);
- }
-
-- to = dir_canonical_vpath(cmd->tmp_pool, decoded_path);
-+ pr_fs_clear_cache2(decoded_path);
-+ to = dir_realpath(cmd->tmp_pool, decoded_path);
-+ if (to == NULL) {
-+ /* Try using dir_best_path(), as xfer_pre_stor() does. */
-+ to = dir_best_path(cmd->tmp_pool, decoded_path);
-+ }
-
- cmd_name = cmd->argv[0];
- pr_cmd_set_name(cmd, "SITE_COPY");
-@@ -833,7 +838,12 @@ MODRET copy_cpto(cmd_rec *cmd) {
- to = pstrcat(cmd->tmp_pool, to, *to ? " " : "", decoded_path, NULL);
- }
-
-- resolved_to = dir_canonical_vpath(cmd->tmp_pool, to);
-+ pr_fs_clear_cache2(to);
-+ resolved_to = dir_realpath(cmd->tmp_pool, to);
-+ if (resolved_to == NULL) {
-+ /* Try using dir_best_path(), as xfer_pre_stor() does. */
-+ resolved_to = dir_best_path(cmd->tmp_pool, to);
-+ }
-
- cmd_name = cmd->argv[0];
- pr_cmd_set_name(cmd, "SITE_CPTO");
diff --git a/proftpd.spec b/proftpd.spec
index ad98d91..f815168 100644
--- a/proftpd.spec
+++ b/proftpd.spec
@@ -17,14 +17,14 @@
%undefine _strict_symbol_defs_build
#global prever rc4
-%global baserelease 5
+%global baserelease 1
%global mod_procfs_version 0.3
%global mod_proxy_version 0.9.7
%global mod_vroot_version 0.9.12
Summary: Flexible, stable and highly-configurable FTP server
Name: proftpd
-Version: 1.3.9e
+Version: 1.3.9f
Release: %{?prever:0.}%{baserelease}%{?prever:.%{prever}}%{?dist}
License: GPL-2.0-or-later
URL: http://www.proftpd.org/
@@ -45,16 +45,11 @@ Source12: http://github.com/Castaglia/proftpd-mod_procfs/archive/v%{mod_procfs_
Patch1: proftpd-1.3.8-shellbang.patch
Patch2: mod_proxy-certificate.patch
Patch3: proftpd-1.3.4rc1-mod_vroot-test.patch
-Patch6: https://github.com/proftpd/proftpd/commit/933abc9a.patch
-Patch7: proftpd-1.3.9e-gh2095.patch
-Patch8: proftpd-1.3.9e-gh2374.patch
-Patch9: https://github.com/proftpd/proftpd/commit/549f8174.patch
-Patch10: https://github.com/proftpd/proftpd/commit/58c9a9cb.patch
-Patch11: https://github.com/proftpd/proftpd/commit/2f687819.patch
-Patch12: https://github.com/proftpd/proftpd/commit/d1fd858b.patch
-Patch13: https://github.com/proftpd/proftpd/commit/44088468.patch
-Patch14: https://github.com/Castaglia/proftpd-mod_proxy/commit/d16026d5.patch
-Patch15: https://github.com/proftpd/proftpd/commit/18535936.patch
+Patch9: https://github.com/proftpd/proftpd/commit/2f687819.patch
+Patch10: https://github.com/proftpd/proftpd/commit/d1fd858b.patch
+Patch11: https://github.com/proftpd/proftpd/commit/44088468.patch
+Patch12: https://github.com/Castaglia/proftpd-mod_proxy/commit/d16026d5.patch
+Patch13: https://github.com/proftpd/proftpd/commit/18535936.patch
BuildRequires: coreutils
BuildRequires: gcc
@@ -239,38 +234,18 @@ mv contrib/README contrib/README.contrib
# If we're running the full test suite, include the mod_vroot test
%patch -P 3 -p1 -b .test_vroot
-# Fix regression in the handling of private keys formatted using the OpenSSH-specific
-# private key format, and which are not passphrase-protected
-# https://github.com/proftpd/proftpd/issues/2411
-%patch -P6 -p1 -b .gh2411
-
-# <Limit READ> configurations were not honored by SITE COPY as they should be
-# https://github.com/proftpd/proftpd/issues/2095
-%patch -P7 -p1 -b .gh2095
-
-# Fix write restriction bypass via symlink following in mod_copy (CVE-2026-119364)
-# https://github.com/proftpd/proftpd/issues/2374
-%patch -P8 -p1 -b .gh2374
-
-# Backport a fix from glibc glob(3) for handling unbalanced brace expansions
-# https://github.com/proftpd/proftpd/issues/2473
-%patch -P9 -p1 -b .gh2473
-
-# Further fixes from glibc glob(3)
-%patch -P10 -p1 -b .glob
-
# ProFTPD modules use OpenSSL 4.x custom providers that collide with defaults, causing segfaults
# https://github.com/proftpd/proftpd/issues/2484
-%patch -P11 -p1 -b .gh2484.1
-%patch -P12 -p1 -b .gh2484.2
-%patch -P13 -p1 -b .gh2484.3
+%patch -P9 -p1 -b .gh2484.1
+%patch -P10 -p1 -b .gh2484.2
+%patch -P11 -p1 -b .gh2484.3
cd contrib/mod_proxy
-%patch -P14 -p1 -b .gh2484.4
+%patch -P12 -p1 -b .gh2484.4
cd -
# Address Auth API error mishandling/mismatch allowing for inadvertent authentication bypass
# https://github.com/proftpd/proftpd/issues/2497
-%patch -P15 -p1 -b .gh2497
+%patch -P13 -p1 -b .gh2497
# Tweak logrotate script for systemd compatibility (#802178)
sed -i -e '/killall/s/test.*/systemctl try-reload-or-restart proftpd.service/' \
@@ -511,6 +486,24 @@ fi
%{_mandir}/man1/ftpwho.1*
%changelog
+* Mon Nov 23 2026 Paul Howarth <paul@city-fan.org> - 1.3.9f-1
+- Update to 1.3.9f
+ - Fix mod_sftp regression with handling of OpenSSH-specific private key
+ format leading to unexpected passphrase prompting on startup (GH#2411)
+ - FTPS data transfers over TLSv1.3 failed with older OpenSSL 1.x versions
+ (GH#2416)
+ - <Limit WRITE> configurations were not honored for symlinks by SITE COPY as
+ they should be (GH#2374)
+ - Use of pwrite(2) for O_APPEND SFTP WRITE requests is not portable (GH#2432)
+ - Fix segfault after SSH key exchange when SFTPCompression is configured in
+ <Global> context; this was a regression caused by GH#2366 (GH#2445)
+ - SFTP OPEN request with CREAT|EXCL flags on an existing file succeeded
+ unexpectedly when HiddenStores configured (GH#2456)
+ - Unexpected mod_xfer module load order lead to SIGSEGV if session was
+ terminated during a file transfer (GH#2360)
+ - Stack overflow possible with bundled glob(3) brace expansion implementation
+ (GH#2473)
+
* Sun Nov 22 2026 Paul Howarth <paul@city-fan.org> - 1.3.9e-5
- ProFTPD modules used OpenSSL 4.x custom providers that collide with defaults,
causing segfaults (GH#2484)
diff --git a/sources b/sources
index 32267be..d65d909 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
-SHA512 (proftpd-1.3.9e.tar.gz) = 95e2b361d6bb2df84d4994922ffa9670dd4e03cd8495eec0b32aeea5c797d6436b5f6bf6a4d1b53f770bd24bb9bb440f0996a4e725a3c10659fe23d19ed65565
+SHA512 (proftpd-1.3.9f.tar.gz) = 8f2d001fb226644ad7af6b2bb7be9b8623cbf7821782abb799b2a03d4aafe4f489b4abc2b71a3c688a5699a6c32e973401fd3539db366c44fc6909905bf6d970
SHA512 (v0.9.12.tar.gz) = a84c14b9d05c4890abe50c86f832c91fa4d0971bc2b1866a3a34d73ff85acd1e902fc0cae739e22ea46e530c73230fb005ea9edeb68fd6cfb963e0c5ca9655ec
SHA512 (v0.9.7.tar.gz) = 9979dc21ebebf5f219303769cebd73be9ab66ae7f50756fa12bdf37bcac1cdc9ac70feeb557ef16bb4bb3fcf8121aed4d16b6a0e5c0738bbcc53a0055410c3cd
SHA512 (v0.3.tar.gz) = 7b9f3812eb83e394dae894094ab28c59ff2a7e77036ea1e33c70344a26e47c13ef882affbc0316de8d763be535d7bb3d6ebda89564feacf79288cdcda9ef0f8c
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-23 16:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 16:35 [rpms/proftpd] f45: Update to 1.3.9f Paul Howarth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox