From 52e75e93f526012ef42bfb2e5de1d9adf81c42cf Mon Sep 17 00:00:00 2001 From: deanna Date: Sat, 17 Mar 2007 03:13:41 +0000 Subject: [PATCH] Bring back patch-lib_silcclient_client_c, which was lost in a previous commit. This fixes a bug where the client won't start if the user has an empty gecos field. From brad, ok ckeuthe. --- net/silc-client/Makefile | 3 ++- .../patches/patch-lib_silcclient_client_c | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 net/silc-client/patches/patch-lib_silcclient_client_c diff --git a/net/silc-client/Makefile b/net/silc-client/Makefile index 3dc6215dd48..e44c65dbd42 100644 --- a/net/silc-client/Makefile +++ b/net/silc-client/Makefile @@ -1,10 +1,11 @@ -# $OpenBSD: Makefile,v 1.36 2006/10/03 18:34:50 brad Exp $ +# $OpenBSD: Makefile,v 1.37 2007/03/17 03:13:41 deanna Exp $ NOT_FOR_ARCHS= ${NO_SHARED_ARCHS} COMMENT= "Secure Internet Live Conferencing (SILC) client" DISTNAME= silc-client-1.0.3 +PKGNAME= ${DISTNAME}p0 CATEGORIES= net HOMEPAGE= http://www.silcnet.org/ diff --git a/net/silc-client/patches/patch-lib_silcclient_client_c b/net/silc-client/patches/patch-lib_silcclient_client_c new file mode 100644 index 00000000000..d9bf929609f --- /dev/null +++ b/net/silc-client/patches/patch-lib_silcclient_client_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-lib_silcclient_client_c,v 1.3 2007/03/17 03:13:41 deanna Exp $ +--- lib/silcclient/client.c.orig Thu Mar 15 16:56:54 2007 ++++ lib/silcclient/client.c Thu Mar 15 16:57:19 2007 +@@ -137,7 +137,7 @@ bool silc_client_init(SilcClient client) + SILC_LOG_ERROR(("Malformed hostname '%s'", client->hostname)); + return FALSE; + } +- if (!silc_utf8_valid(client->realname, strlen(client->realname))) { ++ if ((*client->realname != '\0') && (!silc_utf8_valid(client->realname, strlen(client->realname)))) { + SILC_LOG_ERROR(("Malformed realname '%s'", client->realname)); + return FALSE; + }