From 912ab054c5200e0f90dc4d0625f27e0e43fc8775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Vok=C3=A1l?= Date: Tue, 19 Apr 2005 11:42:25 +0000 Subject: [PATCH] - fix remap rules convert error --- tftp-0.40-remap.patch | 18 ++++++++++++++++++ tftp.spec | 5 +++++ 2 files changed, 23 insertions(+) create mode 100644 tftp-0.40-remap.patch diff --git a/tftp-0.40-remap.patch b/tftp-0.40-remap.patch new file mode 100644 index 0000000..456f378 --- /dev/null +++ b/tftp-0.40-remap.patch @@ -0,0 +1,18 @@ +--- tftp-hpa-0.40/tftpd/remap.c.old 2005-03-16 16:34:34.000000000 -0500 ++++ tftp-hpa-0.40/tftpd/remap.c 2005-03-16 16:22:49.000000000 -0500 +@@ -275,6 +275,7 @@ + int lineno = 0; + int err = 0; + ++ memset(this_rule, '\0', sizeof(struct rule)); + while ( lineno++, fgets(line, MAXLINE, f) ) { + rv = parseline(line, this_rule, lineno); + if ( rv < 0 ) +@@ -283,6 +284,7 @@ + *last_rule = this_rule; + last_rule = &this_rule->next; + this_rule = tfmalloc(sizeof(struct rule)); ++ memset(this_rule, '\0', sizeof(struct rule)); + } + } + diff --git a/tftp.spec b/tftp.spec index a9faafa..1ee2b0f 100644 --- a/tftp.spec +++ b/tftp.spec @@ -7,6 +7,7 @@ Release: 5 License: BSD Group: Applications/Internet Source0: http://www.kernel.org/pub/software/network/tftp/tftp-hpa-%{tftp_hpa_version}.tar.bz2 +Patch0: tftp-0.40-remap.patch BuildPreReq: tcp_wrappers BuildRoot: %{_tmppath}/%{name}-root @@ -32,6 +33,7 @@ enabled unless it is expressly needed. The TFTP server is run from %prep %setup -q -n tftp-hpa-%{version} +%patch0 -p1 -b .zero %build @@ -74,6 +76,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_mandir}/man8/* %changelog +* Tue Apr 19 2005 Radek Vokal 0.40-6 +- fix remap rules convert error + * Wed Mar 23 2005 Radek Vokal 0.40-5 - use tftp-xinetd from tarball (#143589)