13 lines
476 B
Diff
13 lines
476 B
Diff
diff -up cronie-1.3/src/cron.c.old cronie-1.3/src/cron.c
|
|
--- cronie-1.3/src/cron.c.old 2009-05-22 08:16:34.000000000 +0200
|
|
+++ cronie-1.3/src/cron.c 2009-06-18 13:38:53.375571259 +0200
|
|
@@ -399,7 +399,7 @@ run_reboot_jobs(cron_db *db) {
|
|
pid_t pid = getpid();
|
|
|
|
/* lock exist - skip reboot jobs */
|
|
- if (access(REBOOT_LOCK, F_OK)) {
|
|
+ if (access(REBOOT_LOCK, F_OK) == 0) {
|
|
log_it("CRON", pid, "INFO", "@reboot jobs will be run at computer's startup.", 0);
|
|
return;
|
|
}
|