rpms/vixie-cron/devel vixie-cron-4.1-_61symlink.patch, NONE, 1.1 vixie-cron.spec, 1.82, 1.83
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Fri Jan 12 17:08:31 UTC 2007
Author: mmaslano
Update of /cvs/dist/rpms/vixie-cron/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv26502
Modified Files:
vixie-cron.spec
Added Files:
vixie-cron-4.1-_61symlink.patch
Log Message:
Added patch for symlinks changes.
vixie-cron-4.1-_61symlink.patch:
cron.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
--- NEW FILE vixie-cron-4.1-_61symlink.patch ---
--- vixie-cron-4.1/cron.c.orig 2007-01-08 14:08:50.000000000 +0000
+++ vixie-cron-4.1/cron.c 2007-01-08 14:08:43.000000000 +0000
@@ -33,7 +33,7 @@ static void usage(void),
run_reboot_jobs(cron_db *),
find_jobs(int, cron_db *, int, int),
set_time(int),
- cron_sleep(int),
+ cron_sleep(int, cron_db *),
sigchld_handler(int),
sighup_handler(int),
sigchld_reaper(void),
@@ -154,7 +154,7 @@ main(int argc, char *argv[]) {
/* ... wait for the time (in minutes) to change ... */
do {
- cron_sleep(timeRunning + 1);
+ cron_sleep(timeRunning + 1, &database);
set_time(FALSE);
} while (clockTime == timeRunning);
timeRunning = clockTime;
@@ -258,6 +258,7 @@ main(int argc, char *argv[]) {
/* Check to see if we received a signal while running jobs. */
if (got_sighup) {
got_sighup = 0;
+ database.mtime = (time_t) 0;
log_close();
}
if (got_sigchld) {
@@ -357,7 +358,7 @@ set_time(int initialize) {
* Try to just hit the next minute.
*/
static void
-cron_sleep(int target) {
+cron_sleep(int target, cron_db *db) {
time_t t1, t2;
int seconds_to_wait;
@@ -376,6 +377,7 @@ cron_sleep(int target) {
*/
if (got_sighup) {
got_sighup = 0;
+ db->mtime = (time_t) 0;
log_close();
}
if (got_sigchld) {
Index: vixie-cron.spec
===================================================================
RCS file: /cvs/dist/rpms/vixie-cron/devel/vixie-cron.spec,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -r1.82 -r1.83
--- vixie-cron.spec 15 Dec 2006 21:58:20 -0000 1.82
+++ vixie-cron.spec 12 Jan 2007 17:08:29 -0000 1.83
@@ -10,7 +10,7 @@
Summary: The Vixie cron daemon for executing specified programs at set times.
Name: vixie-cron
Version: 4.1
-Release: 68%{?dist}
+Release: 69%{?dist}
Epoch: 4
License: distributable
Group: System Environment/Base
@@ -79,6 +79,7 @@
Patch59: vixie-cron-4.1-_56-pam-session-system-auth.patch
Patch60: vixie-cron-4.1-bz178836.patch
Patch61: vixie-cron-4.1-_60-SELinux-contains-range.patch
+Patch62: vixie-cron-4.1-_61symlink.patch
Buildroot: %{_tmppath}/%{name}-%{version}-root
Requires: syslog, bash >= 2.0
@@ -177,7 +178,7 @@
%patch59 -p1 -b .pam-session-system-auth
%patch60 -p1 -b .bz178836
%patch61 -p1 -b .selinux-contains-range
-
+%patch62 -p1 -b ._61symlink.patch
%build
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -g -DLINT -Dlint" \
%if %{WITH_SELINUX}
@@ -249,6 +250,10 @@
%config(noreplace) /etc/sysconfig/crond
%changelog
+* Fri Jan 10 2007 Marcela Maslanova <mmaslano at redhat.com> - 4:4.1-69
+- patch from bz - Cron does not detect changed symlink
+- rhbz#221856
+
* Thu Dec 14 2006 Dan Walsh <dwalsh at redhat.com> - 4:4.1-68
- Patch to run vixie-cron with mls correctly
More information about the fedora-cvs-commits
mailing list