Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Aug 2023 05:53:05 GMT
From:      Stefan =?utf-8?Q?E=C3=9Fer?= <se@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: de3e65c91a82 - main - security/ncrack: fix bad assumption in configure check
Message-ID:  <202308280553.37S5r5Mq017483@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by se:

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

commit de3e65c91a8226d119fab291716cb19ad51ab7b8
Author:     Stefan Eßer <se@FreeBSD.org>
AuthorDate: 2023-08-28 05:46:23 +0000
Commit:     Stefan Eßer <se@FreeBSD.org>
CommitDate: 2023-08-28 05:46:23 +0000

    security/ncrack: fix bad assumption in configure check
    
    A version check in opensshlib/configure assumed that the zlib version
    had 3 elements (e.g. 1.2.3), but the latest version is 1.3 (not 1.3.0).
    Adjust the configure check to accept a 2-element version number.
    
    No PORTREVISION bump, since this is just a fix for a build check that
    caused an abort of the port build on recent -CURRENT and 14-ALPHA.
---
 security/ncrack/files/patch-opensshlib_configure | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/security/ncrack/files/patch-opensshlib_configure b/security/ncrack/files/patch-opensshlib_configure
new file mode 100644
index 000000000000..30ecb91f9b42
--- /dev/null
+++ b/security/ncrack/files/patch-opensshlib_configure
@@ -0,0 +1,11 @@
+--- opensshlib/configure.orig	2019-08-24 22:25:32 UTC
++++ opensshlib/configure
+@@ -8922,7 +8922,7 @@ main ()
+ 
+ 	int a=0, b=0, c=0, d=0, n, v;
+ 	n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
+-	if (n != 3 && n != 4)
++	if (n < 2 || n > 4)
+ 		exit(1);
+ 	v = a*1000000 + b*10000 + c*100 + d;
+ 	fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308280553.37S5r5Mq017483>