Files
acme.sh/dnsapi
neil b4925052dd Fix dns_cyon cleanup failing on FreeBSD
_cyon_delete_txt relied on `printf "%b"` to convert a sed-injected literal
`\n` into a real newline, but `%b` also processes the `\"` escapes that the
JSON response is full of. glibc/bash/dash keep the backslash of such an
undefined escape, FreeBSD's printf (sh builtin and /usr/bin/printf alike)
drops it -- so `data-hash=\"..\"` became `data-hash=".."`, the extraction
regex matched nothing, _dns_entries stayed empty and no TXT record was ever
deleted.

Drop the newline injection and use _egrep_o, which already yields one match
per line, then parse each line with sed.

Also feed the read loop a newline-terminated list: `printf "%s"` left the
last line unterminated, so `read` returned non-zero at EOF and the loop
skipped the final entry on every platform.

Verified identical output on FreeBSD 14.3, Linux/bash and Linux/dash.

Fixes #7169
2026-08-02 21:55:52 +08:00
..
2024-10-13 17:41:22 +02:00
2024-11-09 18:22:01 +02:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:41:22 +02:00
2026-03-22 11:36:29 +08:00
2026-07-17 12:38:14 +08:00
2024-10-13 17:55:22 +02:00
2026-07-04 16:54:05 +08:00
2026-06-05 22:02:14 +02:00
2025-11-20 00:29:44 +08:00
2026-07-12 16:13:42 +08:00
2024-10-13 17:41:22 +02:00
2026-07-17 12:38:14 +08:00
2025-11-03 18:14:27 +01:00
2026-07-17 12:38:14 +08:00
2024-10-13 17:49:29 +02:00
2024-05-27 12:45:01 +02:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:41:22 +02:00
2026-01-10 01:44:07 +01:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:49:29 +02:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:49:29 +02:00
2024-10-13 17:41:22 +02:00
2026-07-17 12:38:14 +08:00
2026-07-17 12:38:14 +08:00
2024-10-13 17:49:29 +02:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:41:22 +02:00
2025-07-02 21:15:46 +08:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:49:29 +02:00
2024-10-16 11:49:29 +02:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:41:22 +02:00
2024-11-17 20:58:06 +01:00
2024-10-13 17:58:19 +02:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:58:19 +02:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:41:22 +02:00
2026-07-17 12:38:14 +08:00
2025-12-30 16:31:16 -05:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:41:22 +02:00
2026-07-17 12:38:14 +08:00
2024-10-13 17:49:29 +02:00
2024-10-13 17:58:19 +02:00
2026-07-17 12:38:14 +08:00
2026-07-17 12:38:14 +08:00
2024-10-13 17:59:25 +02:00
2026-05-24 22:20:40 +02:00
2026-03-03 05:31:51 -08:00
2026-07-17 12:38:14 +08:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:41:22 +02:00
2026-07-17 12:38:14 +08:00
2024-10-13 17:41:22 +02:00
2024-10-13 17:41:22 +02:00
2024-12-28 17:42:58 +02:00
2020-01-30 12:06:39 +08:00