- 623908 fix fd leak in anacron, which caused denail of prelink

and others
This commit is contained in:
Marcela Mašláňová 2010-08-13 15:40:59 +02:00
parent 5d2df741c9
commit 4104d4bc87
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,11 @@
diff -up cronie-1.4.5/anacron/main.c.fd cronie-1.4.5/anacron/main.c
--- cronie-1.4.5/anacron/main.c.fd 2010-07-12 09:04:21.000000000 +0200
+++ cronie-1.4.5/anacron/main.c 2010-08-13 15:11:10.175529431 +0200
@@ -493,6 +493,7 @@ main(int argc, char *argv[])
record_start_time();
read_tab(cwd);
+ fclose(cwd);
arrange_jobs();
if (testing_only)

View File

@ -6,11 +6,12 @@
Summary: Cron daemon for executing programs at set times
Name: cronie
Version: 1.4.5
Release: 2%{?dist}
Release: 3%{?dist}
License: MIT and BSD and ISC and GPLv2
Group: System Environment/Base
URL: https://fedorahosted.org/cronie
Source0: https://fedorahosted.org/releases/c/r/cronie/%{name}-%{version}.tar.gz
Patch0: cronie-anacron-closefd.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: syslog, bash >= 2.0
@ -71,6 +72,7 @@ Old style of {hourly,daily,weekly,monthly}.jobs without anacron. No features.
%prep
%setup -q
%patch0 -p1
%build
@ -193,6 +195,10 @@ cp -a /var/lock/subsys/crond /var/lock/subsys/cronie > /dev/null 2>&1 ||:
%attr(0644,root,root) %{_sysconfdir}/cron.d/dailyjobs
%changelog
* Fri Aug 13 2010 Marcela Mašláňová <mmaslano@redhat.com> - 1.4.5-3
- 623908 fix fd leak in anacron, which caused denail of prelink
and others
* Mon Aug 9 2010 Marcela Mašláňová <mmaslano@redhat.com> - 1.4.5-2
- remove sendmail from requirements. If it's not installed, it will
log into (r)syslog.