- fixed one line in fd_leak patch

This commit is contained in:
Jiri Skala 2010-02-04 08:46:24 +00:00
parent c81e931142
commit a14d8ec249
2 changed files with 5 additions and 2 deletions

View File

@ -219,7 +219,7 @@ diff -up ppp-2.4.4/pppd/main.c.fd_leak ppp-2.4.4/pppd/main.c
+ FILE *f;
+
+#if defined(O_CLOEXEC) && defined(SOCK_CLOEXEC)
+ if (cloexec_exec != -1) {
+ if (cloexec_works != -1) {
+ f = fopen(path, "re");
+ if (f != NULL) {
+ check_cloexec(fileno(f));

View File

@ -1,7 +1,7 @@
Summary: The PPP (Point-to-Point Protocol) daemon.
Name: ppp
Version: 2.4.5
Release: 3%{?dist}
Release: 4%{?dist}
License: BSD and LGPLv2+ and GPLv2+ and Public Domain
Group: System Environment/Daemons
Source0: ftp://ftp.samba.org/pub/ppp/ppp-%{version}.tar.gz
@ -128,6 +128,9 @@ rm -rf $RPM_BUILD_ROOT
%doc PLUGINS
%changelog
* Thu Feb 04 2010 Jiri Skala <jskala@redhat.com> 2.4.5-4
- fixed one line in fd_leak patch
* Wed Feb 03 2010 Jiri Skala <jskala@redhat.com> 2.4.5-3
- fixes #541107 fd_leak patch