system-tools-backend O_CREAT compile error



I'm not exactly sure if this is the right place for this or not, but.......

system-tools-backend will not compile due to D_FORTIFY_SOURCE=2 on Ubuntu 8.10
Discovered this while doing a jhbuild for GNOME.  Here is the patch I used to fix.  I used permissions 0777.  Not sure if that's what would be wanted here.

diff -ur /home/neil/crap/system-tools-backends-2.6.0/dispatcher/main.c ./system-tools-backends-2.6.0/dispatcher/main.c
--- /home/neil/crap/system-tools-backends-2.6.0/dispatcher/main.c    2008-03-09 07:21:45.000000000 -0600
+++ ./system-tools-backends-2.6.0/dispatcher/main.c    2009-01-31 23:59:52.000000000 -0700
@@ -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, 0777)) != -1)
     {
       str = g_strdup_printf ("%d", getpid ());
       write (pidfile_fd, str, strlen (str));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]