1 Feb 2009 09:00
system-tools-backend O_CREAT compile error
Neil Loknath <neil.loknath <at> gmail.com>
2009-02-01 08:00:04 GMT
2009-02-01 08:00:04 GMT
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
<at> <at> -47,7 +47,7 <at> <at>
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));
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
<at> <at> -47,7 +47,7 <at> <at>
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));
_______________________________________________ desktop-devel-list mailing list desktop-devel-list <at> gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
RSS Feed