Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package tftp for openSUSE:Factory checked in at 2026-11-19 16:53:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tftp (Old) and /work/SRC/openSUSE:Factory/.tftp.new.1251 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tftp" Thu Nov 19 16:53:16 2026 rev:53 rq:1398136 version:7.2 Changes: -------- --- /work/SRC/openSUSE:Factory/tftp/tftp.changes 2026-11-03 17:51:24.641900726 +0100 +++ /work/SRC/openSUSE:Factory/.tftp.new.1251/tftp.changes 2026-11-19 16:53:21.821328881 +0100 @@ -1,0 +2,83 @@ +Wed Nov 4 12:00:00 UTC 2026 - David Anes <[email protected]> + +- update to 7.2: + * 7.2: tftpd drops unneeded Linux capabilities when started as + root (requires libcap) + * 7.2: constrain the "rollover" option to 0 and 1 + * 7.2: fix options negotiation that could return an invalid + block size and broke the timeout options + * 7.2: fix standalone listening mode without -a or with an + address that has a : but no port + * 7.2: experimental TFTP "cookie" option to match requests and + replies and detect duplicated packets + * 7.1: C99 compiler and standard library are now required + * 7.1: client rejects reply packets from an address other than + the targeted server (--unsafe to override) + * 7.1: client defaults to "--blocksize mtu --windowsize 64" and + requests tsize to validate the received file length + * 7.1: client --no-options option; client defaults to octet mode + * 7.1: server --validate, --read-only and --max-upload options + * 7.1: --create deletes a failed upload file and refuses writes + through a symbolic link (O_NOFOLLOW) + * 7.0: reduced server memory footprint + * 7.0: client mget/mput commands for multi-file transfers + * 7.0: command-mode failures return a nonzero exit status + * 7.0: tftpd --jail option (openat2, no chroot, no root needed) + * 7.0: tftpd --normalize[=none|root|path] option + * 7.0: tftpd logs successful and failed transfers + * 6.1: shared client/server transfer implementation + * 6.1: windowed transfer recovery for delayed, duplicate and + out-of-order packets + * 6.1: optional threaded transfer I/O (--disable-threads) + * 6.0: RFC 7440 windowsize support + * 6.0: threaded I/O in tftpd + * 6.0: systemd socket activation (--systemd) + * 6.0: multiple --address arguments + * 6.0: client blksize and windowsize options, long options + * 6.0: drop tcpwrappers support +- drop tftp-hpa-0.46_colon_check.patch: subsumed by upstream + refactoring of the colon checks (commits 59f8a73 and 1259cba) +- adapt tftp-hpa-0.48-tzfix.patch to 7.2: rewrite the hunk with + symmetric context so that GNU patch applies it in the middle of + tftpd/tftpd.c (a hunk with more prefix context than suffix + context only matches at the end of the file) +- adapt tftp-hpa-0.48-macros-v6mapped.patch to 7.2: update the + rewrite_macros() signature in the hunk context; make v6_mapped[] + an unsigned char array to fix a -Woverflow warning +- adapt tftp-hpa-5.4-stdbool.patch to 7.2: update the hunk context + for the #include "config.h" line in tftpd/path.h +- spec: remove the stale configure options --enable-largefile, + --with-tcpwrappers, --with-remap and --with-ipv6 (unrecognized + in 7.2; remap and ipv6 are enabled by default) +- spec: remove -fcommon from CFLAGS (7.2 forces -fno-common) +- spec: remove BuildRequires: tcpd-devel (tcpwrappers support + dropped in 6.0) +- spec: add BuildRequires: libcap-devel (tftpd capability dropping + on Linux) +- new patch tftp-hpa-7.2-test-user.patch: make the user the test + server runs as configurable via the TFTP_TEST_USER environment + variable (default: nobody) +- new patch tftp-hpa-7.2-configure-dep-tracking.patch: accept the + --disable-dependency-tracking option passed by the SUSE %configure + macro as a no-op (the PA_ build system has no dependency tracking) +- new patch tftp-hpa-7.2-uintmax-timeout.patch: make the r_timeout + locals in tftp_sendfile() and tftp_recvfile() uintmax_t instead of + unsigned long. On 32-bit architectures (i586), unsigned long is + 32-bit while uintmax_t is 64-bit, so passing &r_timeout to + client_recv_time() fails with -Wincompatible-pointer-types, which + GCC 14+ treats as an error +- new patch tftp-hpa-7.2-autoconf-prereq.patch: lower AC_PREREQ from + 2.71 to 2.69 and remove AC_CHECK_INCLUDES_DEFAULT (an autoconf + 2.70+ macro) so that configure.ac builds with the autoconf 2.69 + shipped by SLE-15 and SLE-12 +- new patch tftp-hpa-7.2-test-jail.patch: make the test suite work + with tftpd builds without --jail support (no openat2): drop the + --jail option and use absolute request paths, which the server + validate mode requires +- spec: add a %check section that runs the upstream test suite + (tests/test-tftp.sh): client-server transfer tests on localhost + with various block sizes and window sizes, run as the tftp user + (the build root has no nobody user) +- spec: add BuildRequires: bc (used by the test suite for timing) + +------------------------------------------------------------------- Old: ---- tftp-hpa-0.46_colon_check.patch tftp-hpa-5.4.tar.gz New: ---- tftp-hpa-7.2-autoconf-prereq.patch tftp-hpa-7.2-configure-dep-tracking.patch tftp-hpa-7.2-test-jail.patch tftp-hpa-7.2-test-user.patch tftp-hpa-7.2-uintmax-timeout.patch tftp-hpa-7.2.tar.gz ----------(Old B)---------- Old: * 6.0: drop tcpwrappers support - drop tftp-hpa-0.46_colon_check.patch: subsumed by upstream refactoring of the colon checks (commits 59f8a73 and 1259cba) ----------(Old E)---------- ----------(New B)---------- New: GCC 14+ treats as an error - new patch tftp-hpa-7.2-autoconf-prereq.patch: lower AC_PREREQ from 2.71 to 2.69 and remove AC_CHECK_INCLUDES_DEFAULT (an autoconf New: variable (default: nobody) - new patch tftp-hpa-7.2-configure-dep-tracking.patch: accept the --disable-dependency-tracking option passed by the SUSE %configure New: shipped by SLE-15 and SLE-12 - new patch tftp-hpa-7.2-test-jail.patch: make the test suite work with tftpd builds without --jail support (no openat2): drop the New: on Linux) - new patch tftp-hpa-7.2-test-user.patch: make the user the test server runs as configurable via the TFTP_TEST_USER environment New: macro as a no-op (the PA_ build system has no dependency tracking) - new patch tftp-hpa-7.2-uintmax-timeout.patch: make the r_timeout locals in tftp_sendfile() and tftp_recvfile() uintmax_t instead of ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tftp.spec ++++++ --- /var/tmp/diff_new_pack.WwOpKj/_old 2026-11-19 16:53:22.837371949 +0100 +++ /var/tmp/diff_new_pack.WwOpKj/_new 2026-11-19 16:53:22.839372034 +0100 @@ -21,7 +21,7 @@ %define _fillupdir %{_localstatedir}/adm/fillup-templates %endif Name: tftp -Version: 5.4 +Version: 7.2 Release: 0 Summary: Trivial File Transfer Protocol (TFTP) License: BSD-3-Clause @@ -32,18 +32,24 @@ Source4: tftp.socket Source5: tftp.sysconfig Patch0: tftp-hpa-0.43_include_sys_params.patch -Patch1: tftp-hpa-0.46_colon_check.patch Patch5: tftp-hpa-0.48-tzfix.patch Patch8: tftp-hpa-0.48-macros-v6mapped.patch Patch9: tftp-hpa-5.4-stdbool.patch Patch10: tftp-hpa-5.4-macro-dirs.patch +Patch11: tftp-hpa-7.2-test-user.patch +Patch12: tftp-hpa-7.2-configure-dep-tracking.patch +Patch13: tftp-hpa-7.2-uintmax-timeout.patch +Patch14: tftp-hpa-7.2-autoconf-prereq.patch +Patch15: tftp-hpa-7.2-test-jail.patch + BuildRequires: autoconf BuildRequires: automake +BuildRequires: bc BuildRequires: binutils-devel +BuildRequires: libcap-devel BuildRequires: pkgconfig BuildRequires: shadow BuildRequires: systemd-rpm-macros -BuildRequires: tcpd-devel Requires: netcfg Requires(pre): user(tftp) Recommends: inet-daemon @@ -61,14 +67,15 @@ %build autoreconf -fiv -export CFLAGS="%{optflags} -fcommon -std=gnu11" -%configure \ - --enable-largefile \ - --with-tcpwrappers \ - --with-remap \ - --with-ipv6 +export CFLAGS="%{optflags} -std=gnu11" +%configure %make_build +%check +# Run the upstream client-server test suite. The build root has no +# nobody user, so run the server as the tftp user. +LOCALHOSTS=127.0.0.1 TFTP_TEST_USER=tftp ./tests/test-tftp.sh + %install %make_install INSTALLROOT=%{buildroot} MANDIR="%{_mandir}" ++++++ tftp-hpa-0.48-macros-v6mapped.patch ++++++ --- /var/tmp/diff_new_pack.WwOpKj/_old 2026-11-19 16:53:22.866373179 +0100 +++ /var/tmp/diff_new_pack.WwOpKj/_new 2026-11-19 16:53:22.869373306 +0100 @@ -12,7 +12,7 @@ +#ifdef HAVE_IPV6 +static inline int is_v6_mapped(const union sock_addr* pa) +{ -+ const char v6_mapped[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ++ const unsigned char v6_mapped[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0xFF, 0xFF }; + + if (from.sa.sa_family != AF_INET6) @@ -24,10 +24,10 @@ +} +#endif + - static size_t rewrite_macros(char macro, char **output) + static size_t rewrite_macros(char macro, const char **output) { #ifdef INET6_ADDRSTRLEN -@@ -1410,17 +1434,27 @@ static size_t rewrite_macros(char macro, char **output) +@@ -1410,17 +1434,27 @@ static size_t rewrite_macros(char macro, const char **output) #endif const unsigned char *cp; size_t bytes; @@ -58,7 +58,7 @@ bytes = 16; break; #endif -@@ -1431,7 +1465,7 @@ static size_t rewrite_macros(char macro, char **output) +@@ -1431,7 +1465,7 @@ static size_t rewrite_macros(char macro, const char **output) switch (macro) { case 'i': { ++++++ tftp-hpa-0.48-tzfix.patch ++++++ --- /var/tmp/diff_new_pack.WwOpKj/_old 2026-11-19 16:53:22.881373815 +0100 +++ /var/tmp/diff_new_pack.WwOpKj/_new 2026-11-19 16:53:22.885373984 +0100 @@ -1,13 +1,8 @@ -# Make tftpd log in the local time zone (tftpd/tftpd.c). -# Set the TZ environment variable to the local UTC offset in main(), for -# example "UTC+2". The log timestamps then use the local time zone. -# Kept from the 0.48 package. - -diff --git a/tftpd/tftpd.c b/tftpd/tftpd.c -index 6dcf14f..e44f834 100644 -@@ -390,6 +390,15 @@ int main(int argc, char **argv) - u_short tp_opcode; - bool patherr; +--- a/tftpd/tftpd.c ++++ b/tftpd/tftpd.c +@@ -602,6 +602,14 @@ + + capset_none(); + time_t my_time = 0; + struct tm* p_tm; @@ -17,7 +12,6 @@ + snprintf(envtz, sizeof(envtz) - 1, "UTC%+d", + (int)((p_tm->tm_gmtoff * -1) / 3600)); + setenv("TZ", envtz, 0); -+ #ifdef HAVE_LOCALE_H setlocale(LC_CTYPE, ""); /* For to(w)(lower|upper)() */ #endif ++++++ tftp-hpa-5.4-stdbool.patch ++++++ --- /var/tmp/diff_new_pack.WwOpKj/_old 2026-11-19 16:53:22.903374747 +0100 +++ /var/tmp/diff_new_pack.WwOpKj/_new 2026-11-19 16:53:22.906374874 +0100 @@ -1,7 +1,7 @@ # Add the <stdbool.h> include to tftpd/path.h. -# 5.4 uses bool, true, and false in tftpd/path.h, tftpd/path.c, and -# tftpd/tftpd.c without <stdbool.h>. The spec builds with -std=gnu11, so the -# build fails. The include in path.h covers the three files. +# 7.2 uses bool in tftpd/path.h, tftpd/path.c, and tftpd/tftpd.c without +# <stdbool.h>. The spec builds with -std=gnu11, so the build fails. The +# include in path.h covers the three files. --- a/tftpd/path.h +++ b/tftpd/path.h @@ -11,7 +11,7 @@ +#include <stdbool.h> + + #include "config.h" + const char **parse_path(const char *path, bool strict); - char *build_path(const char * const *dirs); - unsigned int compare_paths(const char * const *a, const char * const *b); ++++++ tftp-hpa-7.2-autoconf-prereq.patch ++++++ >From eea76919e7160ea1797af7095d1d3657999d2f6e Mon Sep 17 00:00:00 2001 From: David Anes <[email protected]> Date: Wed, 4 Nov 2026 16:30:40 +0100 Subject: [PATCH] Build configure.ac with autoconf 2.69 SLE-15 and SLE-12 ship autoconf 2.69, but configure.ac requires 2.71. Two changes are needed: * lower AC_PREREQ from 2.71 to 2.69 * remove AC_CHECK_INCLUDES_DEFAULT (an autoconf 2.70+ macro) The remaining macros used by configure.ac (AS_IF, AC_CHECK_TYPES, AC_CHECK_FUNCS, AC_CHECK_MEMBERS, AC_USE_SYSTEM_EXTENSIONS, ...) are all available in autoconf 2.69. --- configure.ac | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index d8621ca..f910913 100644 --- a/configure.ac +++ b/configure.ac @@ -8,3 +8,3 @@ dnl a configure script. -AC_PREREQ([2.71]) +AC_PREREQ([2.69]) AC_INIT @@ -56,7 +56,6 @@ dnl Check now to declare noreturn functions PA_C_NORETURN dnl Checks for header files. -AC_CHECK_INCLUDES_DEFAULT dnl See if we need extra libraries XTRA=false -- 2.56.0 ++++++ tftp-hpa-7.2-configure-dep-tracking.patch ++++++ diff --git a/configure.ac b/configure.ac index d8621ca..ba35de1 100644 --- a/configure.ac +++ b/configure.ac @@ -28,6 +28,12 @@ dnl Options for debugging and profiling PA_OPTION_DEBUG PA_OPTION_PROFILING +dnl The PA_ build system has no dependency tracking. Accept the +dnl --disable-dependency-tracking option passed by the SUSE +dnl %configure macro as a no-op. +PA_ARG_DISABLED([dependency-tracking], + [track build dependencies (not supported, no-op)]) + dnl Force gcc and gcc-compatible compilers treat signed integers dnl as 2's complement PA_ADD_CFLAGS([-fwrapv]) ++++++ tftp-hpa-7.2-test-jail.patch ++++++ >From eec7538a86802ee25baec7577ecdce170d3c4e74 Mon Sep 17 00:00:00 2001 From: David Anes <[email protected]> Date: Wed, 4 Nov 2026 17:09:11 +0100 Subject: [PATCH] Support tftpd builds without --jail in the test suite The --jail option needs openat2() (glibc >= 2.34, kernel >= 5.6). On systems where tftpd is built without --jail support, the test suite now drops the option and uses absolute request paths, which the server validate mode requires. --- tests/test-tftp.sh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/tests/test-tftp.sh b/tests/test-tftp.sh index 9b32964..c260197 100755 --- a/tests/test-tftp.sh +++ b/tests/test-tftp.sh @@ -18,6 +18,17 @@ ANYADDR="${ANYADDR:-0}" TSIZE="${TSIZE:-1}" TESTROOT=$(mktemp -d) SERVER_DIR="$TESTROOT" + +# --jail needs openat2() (glibc >= 2.34, kernel >= 5.6). If this tftpd +# build does not support it, run the server without --jail. The server +# then validates the requests and requires absolute paths under the +# served directory. +JAIL_OPT=--jail +REQ_PREFIX= +if $TFTPD --jail 2>&1 | grep -q "not supported by this OS"; then + JAIL_OPT= + REQ_PREFIX="$SERVER_DIR/" +fi FILES_DIR="$TESTROOT/files" DL_DIR="$TESTROOT/download" UL_DIR="$TESTROOT/upload" @@ -122,7 +133,7 @@ start_server() { -e "s/([^[:space:]]+)/-a \\1:$PORT/g") TFTPD_CMD+=($addrs) fi - TFTPD_CMD+=(-c --jail "$SERVER_DIR") + TFTPD_CMD+=(-c $JAIL_OPT "$SERVER_DIR") print_info "${TFTPD_CMD[*]}" "${TFTPD_CMD[@]}" & TFTPD_PID=$! @@ -223,7 +234,7 @@ test_download() { # Use non-interactive tftp with get command local -a TFTP_CMD=("$TFTP" "${tftp_options[@]}" "-m" $mode "$LOCALHOST" "$PORT" - -c get files/"$filename" "$download_file") + -c get ${REQ_PREFIX}files/"$filename" "$download_file") print_info "${TFTP_CMD[*]}" rm -f "$logfile" local start=$(date -u +%s.%N) @@ -278,7 +289,7 @@ test_upload() { # The server will write it to SERVER_DIR local -a TFTP_CMD=("$TFTP" "${tftp_options[@]}" "-m" "$mode" "$LOCALHOST" "$PORT" - -c put "$FILES_DIR/$filename" upload/"$filename") + -c put "$FILES_DIR/$filename" ${REQ_PREFIX}upload/"$filename") print_info "${TFTP_CMD[*]}" rm -f "$logfile" local start=$(date -u +%s.%N) -- 2.56.0 ++++++ tftp-hpa-7.2-test-user.patch ++++++ diff --git a/tests/test-tftp.sh b/tests/test-tftp.sh index 89df8fe..9b32964 100755 --- a/tests/test-tftp.sh +++ b/tests/test-tftp.sh @@ -24,6 +24,7 @@ UL_DIR="$TESTROOT/upload" PCAP_LOG="$SCRIPT_DIR/test-tftp.pcap.gz" TFTP_TEST_WINSIZES="${TFTP_TEST_WINSIZES:-1 4 64 256}" TFTP_TEST_BLKSIZES="${TFTP_TEST_BLKSIZES:-mtu mtu-16 512 1468 9001 65464 199}" +TFTP_TEST_USER="${TFTP_TEST_USER:-nobody}" trap 'exit 127' INT TERM trap 'cleanup' EXIT @@ -110,7 +111,7 @@ start_server() { TFTPD_CMD+=(strace -o "$STRACE_LOG" -f) fi - TFTPD_CMD+=("$TFTPD" --stderr -vv -L -p --port-range $PORTRANGE) + TFTPD_CMD+=("$TFTPD" --stderr -vv -L -p --port-range $PORTRANGE -u "$TFTP_TEST_USER") if [ $ANYADDR -ne 0 ]; then if [ $PORT -ne 69 ]; then TFTPD_CMD+=(-a :$PORT) ++++++ tftp-hpa-7.2-uintmax-timeout.patch ++++++ >From a20e8f205413bfcc5171717e208861ce095c40f2 Mon Sep 17 00:00:00 2001 From: David Anes <[email protected]> Date: Wed, 4 Nov 2026 16:21:50 +0100 Subject: [PATCH] Make r_timeout in tftp_sendfile/recvfile uintmax_t client_recv_time() takes a uintmax_t *timeout_us_p parameter. On 32-bit architectures (i586), unsigned long is 32-bit while uintmax_t is 64-bit, so passing &r_timeout fails with -Wincompatible-pointer-types, which GCC 14+ treats as an error. On x86_64 both types are the same 64-bit unsigned long, so the bug is invisible. This also removes the truncation in "r_timeout = timeout;" on 32-bit. --- tftp/tftp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tftp/tftp.c b/tftp/tftp.c index 2fd4bdf..a28ed9c 100644 --- a/tftp/tftp.c +++ b/tftp/tftp.c @@ -280,7 +280,7 @@ int tftp_sendfile(int fd, const char *name, const char *mode) bool convert = !strcmp(mode, "netascii"); struct optreq optreq, optack; uint16_t ap_opcode, ap_block; - unsigned long r_timeout; + uintmax_t r_timeout; volatile uintmax_t amount = 0; struct stat st; @@ -448,7 +448,7 @@ int tftp_recvfile(int fd, const char *name, const char *mode) bool convert = !strcmp(mode, "netascii"); struct optreq optreq, optack; uint16_t opcode; - unsigned long r_timeout; + uintmax_t r_timeout; volatile uintmax_t amount = 0; optreq_init(&optreq); -- 2.56.0 ++++++ tftp-hpa-5.4.tar.gz -> tftp-hpa-7.2.tar.gz ++++++ ++++ 15496 lines of diff (skipped)
