cronie/cronie-nofork-nopid.patch
Wojtek Dziewięcki 170f7cdb82 - Update to 1.4.11
- I removed these patches: cronie-1.4.8-bug_756197.diff
bug-786096_cronie-fdleak.diff, since those issuas appear to have
been addressed upstream.

OBS-URL: https://build.opensuse.org/package/show/Base:System/cronie?expand=0&rev=121
2013-09-25 16:49:18 +00:00

14 lines
368 B
Diff

Index: src/misc.c
===================================================================
--- src/misc.c.orig
+++ src/misc.c
@@ -311,6 +311,8 @@ void acquire_daemonlock(int closeflag) {
return;
}
+ if(NoFork == 1) return; //move along, nothing to do here..
+
if (fd == -1) {
pidfile = _PATH_CRON_PID;
/* Initial mode is 0600 to prevent flock() race/DoS. */