git: 20ca91d08d9c - main - security/libsecret: add forgotten patch

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Wed, 11 Jun 2025 10:08:03 UTC
The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=20ca91d08d9c9975fbc352a6f33b955d74b3ae50

commit 20ca91d08d9c9975fbc352a6f33b955d74b3ae50
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2025-06-11 08:36:52 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2025-06-11 10:07:07 +0000

    security/libsecret: add forgotten patch
---
 security/libsecret/Makefile                               |  1 +
 security/libsecret/files/patch-egg_egg-unix-credentials.c | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/security/libsecret/Makefile b/security/libsecret/Makefile
index 10c72f587577..43d6825802cd 100644
--- a/security/libsecret/Makefile
+++ b/security/libsecret/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	libsecret
 PORTVERSION=	0.21.7
+PORTREVISION=	1
 CATEGORIES=	security gnome
 MASTER_SITES=	GNOME
 DIST_SUBDIR=	gnome
diff --git a/security/libsecret/files/patch-egg_egg-unix-credentials.c b/security/libsecret/files/patch-egg_egg-unix-credentials.c
new file mode 100644
index 000000000000..8afe454939b8
--- /dev/null
+++ b/security/libsecret/files/patch-egg_egg-unix-credentials.c
@@ -0,0 +1,11 @@
+--- egg/egg-unix-credentials.c.orig	2024-02-23 09:53:23 UTC
++++ egg/egg-unix-credentials.c
+@@ -230,7 +230,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