aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysutils/policykit-gnome/Makefile2
-rw-r--r--sysutils/policykit-gnome/files/patch-src_polkit-gnome-manager.c14
2 files changed, 15 insertions, 1 deletions
diff --git a/sysutils/policykit-gnome/Makefile b/sysutils/policykit-gnome/Makefile
index 95027020488e..0dda77126b11 100644
--- a/sysutils/policykit-gnome/Makefile
+++ b/sysutils/policykit-gnome/Makefile
@@ -8,7 +8,7 @@
PORTNAME= policykit-gnome
PORTVERSION= 0.7
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= sysutils gnome
MASTER_SITES= http://hal.freedesktop.org/releases/
DISTNAME= PolicyKit-gnome-${PORTVERSION}
diff --git a/sysutils/policykit-gnome/files/patch-src_polkit-gnome-manager.c b/sysutils/policykit-gnome/files/patch-src_polkit-gnome-manager.c
new file mode 100644
index 000000000000..7ff809d7bb60
--- /dev/null
+++ b/sysutils/policykit-gnome/files/patch-src_polkit-gnome-manager.c
@@ -0,0 +1,14 @@
+--- src/polkit-gnome-manager.c.orig 2008-03-28 13:00:47.000000000 -0400
++++ src/polkit-gnome-manager.c 2008-03-28 13:01:56.000000000 -0400
+@@ -363,7 +363,11 @@ get_exe_for_pid (pid_t pid)
+
+ result = NULL;
+
++#ifdef __FreeBSD__
++ snprintf (proc_name, sizeof (proc_name), "/proc/%d/file", pid);
++#else
+ snprintf (proc_name, sizeof (proc_name), "/proc/%d/exe", pid);
++#endif
+ len = readlink (proc_name, buf, sizeof (buf) - 1);
+ if (len == -1) {
+ goto out;