git: de3e65c91a82 - main - security/ncrack: fix bad assumption in configure check
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Aug 2023 05:53:05 UTC
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);