head 1.3; access; symbols; locks; strict; comment @ * @; 1.3 date 2026.09.04.18.25.08; author drixter; state dead; branches; next 1.2; commitid QffKvEdPshA1KkUG; 1.2 date 2026.08.30.09.15.36; author drixter; state Exp; branches; next 1.1; commitid cUiBAHiBy3oqRDTG; 1.1 date 2026.08.29.19.55.15; author drixter; state Exp; branches; next ; commitid zquWNsdKsQkTqzTG; desc @@ 1.3 log @knot: Update to 3.5.8 Knot DNS 3.5.8 (2026-09-04) Improvements: knotc: better compatibility with SmartOS #979 knotd: added a check for possible errors while reading a backup label file knotd: more robust parsing of data stored in LMDB (Thanks to Jim Alves-Foss) Bugfixes: knotd: unauthenticated TSIG chosen-prefix signing that enables DDNS forgery (Thanks to Gia Bui) knotd: server crash due to a missing check for malformed TCP packet in XDP mode (Thanks to Kushal Das) kzonecheck: defective zone origin detection if the file name is too short (Thanks to Kushal Das) @ text @$NetBSD: patch-src_utils_knotc_interactive.c,v 1.2 2026/08/30 09:15:36 drixter Exp $ Fix from upstream to properly compile on SunOS --- src/utils/knotc/interactive.c.orig 2026-08-29 19:17:24.182700199 +0000 +++ src/utils/knotc/interactive.c @@@@ -359,11 +359,16 @@@@ static void path_lookup(EditLine *el, co struct stat sb; for (int i = 0; i < nnames; ++i) { const struct dirent *it = namelist[i]; +#ifdef __sun + strlcpy(base, it->d_name, PATH_MAX - (size_t)(base - path)); + bool is_dir = !stat(path, &sb) && S_ISDIR(sb.st_mode); +#else bool is_dir = (it->d_type == DT_DIR); if (it->d_type == DT_LNK) { strlcpy(base, it->d_name, PATH_MAX - (size_t)(base - path)); is_dir = !stat(path, &sb) && S_ISDIR(sb.st_mode); } +#endif if ((!dirsonly || is_dir) && (strcmp(it->d_name, ".") && strcmp(it->d_name, ".."))) { char buf[NAME_MAX + 2]; // Max. name length + slash + terminator. @ 1.2 log @knot: Fix patch path typo @ text @d1 1 a1 1 $NetBSD$ @ 1.1 log @knot: Fix from upstream to properly compile on SunOS @ text @d5 2 a6 2 --- /usr/work/amd64/wip/knot/work/knot-3.5.7/src/utils/knotc/interactive.c.orig 2026-08-29 19:17:24.182700199 +0000 +++ /usr/work/amd64/wip/knot/work/knot-3.5.7/src/utils/knotc/interactive.c @