openbsd-ports/x11/dbus/patches/patch-dbus_dbus-sysdeps-util-unix_c

25 lines
848 B
Plaintext
Raw Normal View History

2011-09-29 02:57:36 -04:00
$OpenBSD: patch-dbus_dbus-sysdeps-util-unix_c,v 1.2 2011/09/29 06:57:36 ajacoutot Exp $
2011-05-06 03:34:17 -04:00
Don't try to use /proc; we don't provide a replacement because this
function is only called once for logging purpose, its return code is not
checked and as the code says: "This string <...> may not be trusted".
2011-09-29 02:57:36 -04:00
--- dbus/dbus-sysdeps-util-unix.c.orig Wed Sep 21 13:16:16 2011
+++ dbus/dbus-sysdeps-util-unix.c Thu Sep 29 08:49:44 2011
@@ -1104,6 +1104,7 @@ _dbus_command_for_pid (unsigned long pid,
2011-05-06 03:34:17 -04:00
int max_len,
DBusError *error)
{
+#ifndef __OpenBSD__
/* This is all Linux-specific for now */
DBusString path;
DBusString cmdline;
2011-09-29 02:57:36 -04:00
@@ -1163,4 +1164,7 @@ fail:
2011-05-06 03:34:17 -04:00
_dbus_string_free (&cmdline);
_dbus_string_free (&path);
return FALSE;
+#else // OpenBSD
+ return FALSE;
+#endif
}