diff --git a/cronie.spec b/cronie.spec index 1f2f377..dad79a6 100644 --- a/cronie.spec +++ b/cronie.spec @@ -6,13 +6,14 @@ Summary: Cron daemon for executing programs at set times Name: cronie Version: 1.2 -Release: 4%{?dist} +Release: 5%{?dist} License: MIT and BSD Group: System Environment/Base URL: https://fedorahosted.org/cronie #Source0: https://fedorahosted.org/cronie/%{name}-%{version}.tar.gz Source0: http://mmaslano.fedorapeople.org/cronie/%{name}-%{version}.tar.gz Patch0: init.patch +Patch1: symlink.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: syslog, bash >= 2.0 @@ -48,6 +49,7 @@ SELinux. %prep %setup -q %patch0 -p1 +%patch1 -p1 %build @@ -127,6 +129,10 @@ cp -a /var/lock/subsys/crond /var/lock/subsys/cronie > /dev/null 2>&1 ||: %config(noreplace) %{_sysconfdir}/cron.deny %changelog +* Fri Dec 19 2008 Marcela Mašláňová - 1.2-5 +- 477100 NO_FOLLOW was removed. Now are symlinked jobs runned, + but aren't watched for changes. + * Fri Oct 24 2008 Marcela Mašláňová - 1.2-4 - update init script diff --git a/symlink.patch b/symlink.patch new file mode 100644 index 0000000..ff8a622 --- /dev/null +++ b/symlink.patch @@ -0,0 +1,12 @@ +diff -up cronie-1.2/src/database.c.old cronie-1.2/src/database.c +--- cronie-1.2/src/database.c.old 2008-06-26 14:56:00.000000000 +0200 ++++ cronie-1.2/src/database.c 2008-12-19 12:21:15.000000000 +0100 +@@ -51,7 +51,7 @@ check_open(const char *tabname, const ch + int crontab_fd; + pid_t pid = getpid(); + +- if ((crontab_fd = open(tabname, O_RDONLY|O_NONBLOCK|O_NOFOLLOW, 0)) == -1) { ++ if ((crontab_fd = open(tabname, O_RDONLY|O_NONBLOCK, 0)) == -1) { + log_it(uname, pid, "CAN'T OPEN", tabname, errno); + return(-1); + }