diff --git a/cronie-anacron-closefd.patch b/cronie-anacron-closefd.patch new file mode 100644 index 0000000..4b9c0a5 --- /dev/null +++ b/cronie-anacron-closefd.patch @@ -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) diff --git a/cronie.spec b/cronie.spec index 4ea5db3..9730d5a 100644 --- a/cronie.spec +++ b/cronie.spec @@ -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á - 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á - 1.4.5-2 - remove sendmail from requirements. If it's not installed, it will log into (r)syslog.