[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/tftp/devel tftp-0.40-remap.patch,NONE,1.1 tftp.spec,1.22,1.23



Update of /cvs/dist/rpms/tftp/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv5020

Modified Files:
	tftp.spec 
Added Files:
	tftp-0.40-remap.patch 
Log Message:
- fix remap rules convert error <pjones redhat com>

tftp-0.40-remap.patch:
 remap.c |    2 ++
 1 files changed, 2 insertions(+)

--- NEW FILE tftp-0.40-remap.patch ---
--- 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));
     }
   }
 


Index: tftp.spec
===================================================================
RCS file: /cvs/dist/rpms/tftp/devel/tftp.spec,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- tftp.spec	23 Mar 2005 09:03:29 -0000	1.22
+++ tftp.spec	19 Apr 2005 11:42:25 -0000	1.23
@@ -7,6 +7,7 @@
 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 @@
 
 %prep
 %setup -q -n tftp-hpa-%{version} 
+%patch0 -p1 -b .zero
 
 %build
 
@@ -74,6 +76,9 @@
 %{_mandir}/man8/*
 
 %changelog
+* Tue Apr 19 2005 Radek Vokal <rvokal redhat com> 0.40-6
+- fix remap rules convert error <pjones redhat com>
+
 * Wed Mar 23 2005 Radek Vokal <rvokal redhat com> 0.40-5
 - use tftp-xinetd from tarball (#143589)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]