summaryrefslogtreecommitdiff
path: root/security/gnomekeyring/files/patch-gnome-keyring-daemon.c
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2006-05-28 15:22:13 +0000
committerPav Lucistnik <pav@FreeBSD.org>2006-05-28 15:22:13 +0000
commit5580b13f7dcec007d64a19f23cbf90b23f0eb914 (patch)
tree09a4fa6bf1a15b7ea095660ee4d3173e8ab0140c /security/gnomekeyring/files/patch-gnome-keyring-daemon.c
parent- Rename ports (diff)
- Rename ports
security/gnomekeyring -> security/gnome-keyring security/gnomekeyringmanager -> security/gnome-keyring-manager
Notes
Notes: svn path=/head/; revision=163712
Diffstat (limited to 'security/gnomekeyring/files/patch-gnome-keyring-daemon.c')
-rw-r--r--security/gnomekeyring/files/patch-gnome-keyring-daemon.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/security/gnomekeyring/files/patch-gnome-keyring-daemon.c b/security/gnomekeyring/files/patch-gnome-keyring-daemon.c
deleted file mode 100644
index 293df59b976f..000000000000
--- a/security/gnomekeyring/files/patch-gnome-keyring-daemon.c
+++ /dev/null
@@ -1,34 +0,0 @@
---- gnome-keyring-daemon.c.orig Tue Jul 20 22:41:27 2004
-+++ gnome-keyring-daemon.c Tue Jul 20 22:43:03 2004
-@@ -121,7 +121,7 @@
- int i;
-
- got_random = FALSE;
--#ifdef __linux__
-+#if defined(__linux__) || defined(__FreeBSD__)
- {
- int fd;
-
-@@ -352,6 +352,22 @@
- app_ref->pathname[len] = 0;
- }
-
-+ }
-+#elif defined(__FreeBSD__)
-+ {
-+ char buffer[1024];
-+ int len;
-+ char *path;
-+
-+ path = g_strdup_printf ("/proc/%d/file", pid);
-+ len = readlink (path, buffer, sizeof (buffer));
-+ g_free (path);
-+
-+ if (len > 0) {
-+ app_ref->pathname = g_malloc (len + 1);
-+ memcpy (app_ref->pathname, buffer, len);
-+ app_ref->pathname[len] = 0;
-+ }
- }
- #endif
-