diff options
author | marcus <marcus@FreeBSD.org> | 2007-04-13 12:00:18 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2007-04-13 12:00:18 +0800 |
commit | 1d6478c19b740081dae360304893e7ffa162b49f (patch) | |
tree | 2b85a38f84a4de861327b4ad04e5467cd9d88a04 /sysutils/system-tools-backends | |
parent | f768baf50f5098c0129f6ecd5069a438acb07f27 (diff) | |
download | freebsd-ports-gnome-1d6478c19b740081dae360304893e7ffa162b49f.tar.gz freebsd-ports-gnome-1d6478c19b740081dae360304893e7ffa162b49f.tar.zst freebsd-ports-gnome-1d6478c19b740081dae360304893e7ffa162b49f.zip |
Pass an explicit mode to open() so that the PID file is created with sane
permissions.
Reported by: netchild
Diffstat (limited to 'sysutils/system-tools-backends')
-rw-r--r-- | sysutils/system-tools-backends/Makefile | 1 | ||||
-rw-r--r-- | sysutils/system-tools-backends/files/patch-dispatcher_dispatcher.c | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/sysutils/system-tools-backends/Makefile b/sysutils/system-tools-backends/Makefile index ae637e4010c0..c30c1689e10a 100644 --- a/sysutils/system-tools-backends/Makefile +++ b/sysutils/system-tools-backends/Makefile @@ -8,6 +8,7 @@ PORTNAME= system-tools-backends PORTVERSION= 2.2.1 +PORTREVISION= 1 CATEGORIES= sysutils gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} diff --git a/sysutils/system-tools-backends/files/patch-dispatcher_dispatcher.c b/sysutils/system-tools-backends/files/patch-dispatcher_dispatcher.c new file mode 100644 index 000000000000..f1f49929e772 --- /dev/null +++ b/sysutils/system-tools-backends/files/patch-dispatcher_dispatcher.c @@ -0,0 +1,11 @@ +--- dispatcher/dispatcher.c.orig Thu Apr 12 23:55:38 2007 ++++ dispatcher/dispatcher.c Thu Apr 12 23:57:40 2007 +@@ -203,7 +203,7 @@ daemonize (void) + + 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)); |