summaryrefslogtreecommitdiffstats
path: root/sysutils/system-tools-backends/files/patch-dispatcher_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/system-tools-backends/files/patch-dispatcher_main.c')
-rw-r--r--sysutils/system-tools-backends/files/patch-dispatcher_main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/system-tools-backends/files/patch-dispatcher_main.c b/sysutils/system-tools-backends/files/patch-dispatcher_main.c
new file mode 100644
index 000000000..b575cbfd4
--- /dev/null
+++ b/sysutils/system-tools-backends/files/patch-dispatcher_main.c
@@ -0,0 +1,11 @@
+--- dispatcher/main.c.orig 2007-10-29 20:36:16.890317344 -0400
++++ dispatcher/main.c 2007-10-29 20:37:02.584773483 -0400
+@@ -47,7 +47,7 @@
+
+ setsid ();
+
+- if ((pidfile_fd = open (LOCALSTATEDIR "/run/system-tools-backends.pid", O_CREAT | O_WRONLY)) != -1)
++ if ((pidfile_fd = open (LOCALSTATEDIR "/run/system-tools-backends.pid", O_CREAT | O_WRONLY, 0600)) != -1)
+ {
+ str = g_strdup_printf ("%d", getpid ());
+ write (pidfile_fd, str, strlen (str));
td>-2/+1 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-21