Bug#447361: How to fix this

Mike Bird mgb-debian at yosemite.net
Sat May 17 17:06:41 UTC 2008


dispatcher.c does:

    if ((pidfile_fd = open (LOCALSTATEDIR "/run/system-tools-backends.pid", 
O_CREAT | O_WRONLY)) != -1)

But according to "man open":

  mode specifies the permissions to use in case a new file is created.
  This argument must be supplied when O_CREAT is specified in flags;

The fix is to add a mode argument.  0644 is usual for pid files:

    if ((pidfile_fd = open (LOCALSTATEDIR "/run/system-tools-backends.pid", 
O_CREAT | O_WRONLY, 0644)) != -1)

--Mike Bird






More information about the pkg-gnome-maintainers mailing list