rpms/tftp/devel tftp-0.49-chk_retcodes.patch, NONE, 1.1 tftp.spec, 1.47, 1.48
Jiri Skala
jskala at fedoraproject.org
Thu Jan 15 14:37:12 UTC 2009
Author: jskala
Update of /cvs/extras/rpms/tftp/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18677
Modified Files:
tftp.spec
Added Files:
tftp-0.49-chk_retcodes.patch
Log Message:
* Thu Jan 15 2009 Jiri Skala <jskala at redhat.com> - 0.49-2
- #473487 - unchecked return values
tftp-0.49-chk_retcodes.patch:
--- NEW FILE tftp-0.49-chk_retcodes.patch ---
diff -up tftp-hpa-0.49/tftpd/tftpd.c.chk_retcodes tftp-hpa-0.49/tftpd/tftpd.c
--- tftp-hpa-0.49/tftpd/tftpd.c.chk_retcodes 2009-01-15 15:28:50.000000000 +0100
+++ tftp-hpa-0.49/tftpd/tftpd.c 2009-01-15 15:31:36.000000000 +0100
@@ -932,7 +932,10 @@ int main(int argc, char **argv)
exit(EX_OSERR);
}
#ifdef __CYGWIN__
- chdir("/"); /* Cygwin chroot() bug workaround */
+ if (chdir("/") < 0) { /* Cygwin chroot() bug workaround */
+ syslog(LOG_ERR, "chroot: %m");
+ exit(EX_OSERR);
+ }
#endif
}
#ifdef HAVE_SETREGID
Index: tftp.spec
===================================================================
RCS file: /cvs/extras/rpms/tftp/devel/tftp.spec,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- tftp.spec 25 Nov 2008 16:55:31 -0000 1.47
+++ tftp.spec 15 Jan 2009 14:36:41 -0000 1.48
@@ -1,7 +1,7 @@
Summary: The client for the Trivial File Transfer Protocol (TFTP)
Name: tftp
Version: 0.49
-Release: 1%{?dist}
+Release: 2%{?dist}
License: BSD
Group: Applications/Internet
Source0: http://www.kernel.org/pub/software/network/tftp/tftp-hpa-%{version}.tar.bz2
@@ -10,6 +10,7 @@
Patch0: tftp-0.40-remap.patch
Patch2: tftp-hpa-0.39-tzfix.patch
Patch3: tftp-0.42-tftpboot.patch
+Patch4: tftp-0.49-chk_retcodes.patch
BuildRequires: tcp_wrappers-devel readline-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -41,6 +42,7 @@
%patch0 -p1 -b .zero
%patch2 -p1 -b .tzfix
%patch3 -p1 -b .tftpboot
+%patch4 -p1 -b .chk_retcodes
%build
@@ -86,6 +88,9 @@
%{_mandir}/man8/*
%changelog
+* Thu Jan 15 2009 Jiri Skala <jskala at redhat.com> - 0.49-2
+- #473487 - unchecked return values
+
* Tue Nov 25 2008 Tom "spot" Callaway <tcallawa at redhat.com> - 0.49-1
- update to 0.49
More information about the scm-commits
mailing list