aboutsummaryrefslogtreecommitdiff
path: root/security/gnome-keyring/files/patch-egg_egg-unix-credentials.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/gnome-keyring/files/patch-egg_egg-unix-credentials.c')
-rw-r--r--security/gnome-keyring/files/patch-egg_egg-unix-credentials.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/security/gnome-keyring/files/patch-egg_egg-unix-credentials.c b/security/gnome-keyring/files/patch-egg_egg-unix-credentials.c
new file mode 100644
index 000000000000..e54c436a03df
--- /dev/null
+++ b/security/gnome-keyring/files/patch-egg_egg-unix-credentials.c
@@ -0,0 +1,21 @@
+--- egg/egg-unix-credentials.c.orig 2025-03-18 08:38:44 UTC
++++ egg/egg-unix-credentials.c
+@@ -142,7 +142,9 @@ egg_unix_credentials_read (int sock, pid_t *pid, uid_t
+ cred = (struct sockcred *) CMSG_DATA (&cmsg.hdr);
+ *pid = 0;
+ *uid = cred->sc_euid;
++#ifndef __FreeBSD__
+ set_local_creds(sock, 0);
++#endif
+ #elif defined(HAVE_GETPEEREID) /* OpenBSD */
+ uid_t euid;
+ gid_t egid;
+@@ -230,7 +232,7 @@ egg_unix_credentials_setup (int sock)
+ #if defined(LOCAL_CREDS) && !defined(HAVE_CMSGCRED)
+ int val = 1;
+ if (setsockopt (sock, 0, LOCAL_CREDS, &val, sizeof (val)) < 0) {
+- fprintf (stderr, "unable to set LOCAL_CREDS socket option on fd %d\n", fd);
++ fprintf (stderr, "unable to set LOCAL_CREDS socket option\n");
+ retval = -1;
+ }
+ #endif