Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libmaa libmaa: Limit hostname to 64 characters t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/950184f52fea
branches:  trunk
changeset: 434429:950184f52fea
user:      leot <leot%pkgsrc.org@localhost>
date:      Tue Jun 16 12:40:23 2020 +0000

description:
libmaa: Limit hostname to 64 characters to avoid possible truncation

Discussed and ok <cheusov>

PKGREVISION++

diffstat:

 devel/libmaa/Makefile                |   3 ++-
 devel/libmaa/distinfo                |   3 ++-
 devel/libmaa/patches/patch-maa_log.c |  16 ++++++++++++++++
 3 files changed, 20 insertions(+), 2 deletions(-)

diffs (44 lines):

diff -r 82136a17743e -r 950184f52fea devel/libmaa/Makefile
--- a/devel/libmaa/Makefile     Tue Jun 16 12:10:23 2020 +0000
+++ b/devel/libmaa/Makefile     Tue Jun 16 12:40:23 2020 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.17 2020/04/10 22:44:23 cheusov Exp $
+# $NetBSD: Makefile,v 1.18 2020/06/16 12:40:23 leot Exp $
 
 DISTNAME=              libmaa-1.4.7
+PKGREVISION=           1
 CATEGORIES=            devel
 MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=dict/}
 
diff -r 82136a17743e -r 950184f52fea devel/libmaa/distinfo
--- a/devel/libmaa/distinfo     Tue Jun 16 12:10:23 2020 +0000
+++ b/devel/libmaa/distinfo     Tue Jun 16 12:40:23 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.15 2020/04/10 22:44:23 cheusov Exp $
+$NetBSD: distinfo,v 1.16 2020/06/16 12:40:23 leot Exp $
 
 SHA1 (libmaa-1.4.7.tar.gz) = 7406e7171c6fba4dba3f96244abc0715f0f4fee5
 RMD160 (libmaa-1.4.7.tar.gz) = 362ccaee8650c1acd2dafe2ff46ec3c387544e81
 SHA512 (libmaa-1.4.7.tar.gz) = 6aa0ec6de92d9512152116a2698f5e7d3166631832968d2b7942b8564a4d61ef6eaf304d863e682758636e55a0c5d26fde49db028b18c160abb2286683e8478b
 Size (libmaa-1.4.7.tar.gz) = 173728 bytes
+SHA1 (patch-maa_log.c) = 72bfdee2f4e7c62552c505e613183fbfbf4ad4f8
diff -r 82136a17743e -r 950184f52fea devel/libmaa/patches/patch-maa_log.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libmaa/patches/patch-maa_log.c      Tue Jun 16 12:40:23 2020 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-maa_log.c,v 1.1 2020/06/16 12:40:23 leot Exp $
+
+MAXHOSTNAMELEN can be already defined, limit to 64 characters to avoid
+possible truncation.
+
+--- maa/log.c.orig     2020-04-10 22:10:13.000000000 +0000
++++ maa/log.c
+@@ -314,7 +314,7 @@ static void _log_base_va(
+                       buf_preamble [0] = 0;
+               } else {
+                       snprintf (buf_preamble, sizeof (buf_preamble),
+-                                        "%24.24s %s %s[%ld]: ",
++                                        "%24.24s %.64s %s[%ld]: ",
+                                         ctime(&t),
+                                         logHostname,
+                                         logIdent,



Home | Main Index | Thread Index | Old Index