diff options
author | marcus <marcus@FreeBSD.org> | 2008-03-29 02:47:43 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2008-03-29 02:47:43 +0800 |
commit | 5df1cce1cc4c5a7d3bd236b70e55fb3f2f2341b3 (patch) | |
tree | f4e9b0d1aa1f22f7af56bffe7cc80055a3471146 | |
parent | ce00dacd44aa03b73aca19796c285c8e70055df7 (diff) | |
download | freebsd-ports-gnome-5df1cce1cc4c5a7d3bd236b70e55fb3f2f2341b3.tar.gz freebsd-ports-gnome-5df1cce1cc4c5a7d3bd236b70e55fb3f2f2341b3.tar.zst freebsd-ports-gnome-5df1cce1cc4c5a7d3bd236b70e55fb3f2f2341b3.zip |
Allow PolicyKit-gnome to find the current executable on FreeBSD.
-rw-r--r-- | sysutils/policykit-gnome/Makefile | 2 | ||||
-rw-r--r-- | sysutils/policykit-gnome/files/patch-src_polkit-gnome-manager.c | 14 |
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; |