]> git.pld-linux.org Git - packages/cronie.git/blame - cronie-nosyscrontab.patch
- fix migration triggers from other crontabs
[packages/cronie.git] / cronie-nosyscrontab.patch
CommitLineData
9c2aa177
AM
1--- cronie-1.4.1/src/cron.c~ 2009-06-22 08:13:27.000000000 +0200
2+++ cronie-1.4.1/src/cron.c 2009-09-09 14:58:49.613957188 +0200
3@@ -47,10 +47,10 @@
4
5 #if defined WITH_INOTIFY
6
7-# define NUM_WATCHES 3
8+# define NUM_WATCHES 2
9
10 int wd[NUM_WATCHES];
11-const char *watchpaths[NUM_WATCHES] = {SPOOL_DIR, SYS_CROND_DIR, SYSCRONTAB};
12+const char *watchpaths[NUM_WATCHES] = {SPOOL_DIR, SYS_CROND_DIR};
13
14 void set_cron_unwatched(int fd) {
15 int i;
16--- cronie-1.4.1/src/database.c~ 2009-06-01 09:46:08.000000000 +0200
17+++ cronie-1.4.1/src/database.c 2009-09-09 15:00:05.734341492 +0200
18@@ -202,8 +202,6 @@
19
20 /* TODO: parse the events and read only affected files */
21
22- process_crontab("root", NULL, SYSCRONTAB, &new_db, old_db);
23-
24 if (!(dir = opendir(SYS_CROND_DIR))) {
25 log_it("CRON", pid, "OPENDIR FAILED", SYS_CROND_DIR, errno);
26 }
27@@ -340,9 +338,6 @@
28 new_db.ifd = old_db->ifd;
29 #endif
30
31- if (syscron_stat.st_mtime)
32- process_crontab("root", NULL, SYSCRONTAB, &new_db, old_db);
33-
34 if (!(dir = opendir(SYS_CROND_DIR))) {
35 log_it("CRON", pid, "OPENDIR FAILED", SYS_CROND_DIR, errno);
36 }
This page took 0.057214 seconds and 4 git commands to generate.