* updated yet more dir-less .cache DEPs
[t2sde.git] / package / network / dnsmasq / allow-raw-hex-string.patch
blob2a62d5e45e152a9b213292bdc7dd2c87f6d573be
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/dnsmasq/allow-raw-hex-string.patch
3 # Copyright (C) 2024 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 Allow specifing raw, non C, non NUL terminated strings, e.g. for
15 option 67, bootfile-name on broken vintage Apple OpenFirmware, ...
17 --- dnsmasq-2.90/src/option.c.vanilla 2024-04-03 13:25:17.415189079 +0200
18 +++ dnsmasq-2.90/src/option.c 2024-04-03 14:10:41.063242164 +0200
19 @@ -1633,7 +1633,7 @@
21 /* or names */
22 else if (opt_len & (OT_NAME | OT_RFC1035_NAME | OT_CSTRING))
23 - is_addr6 = is_addr = is_dec = is_hex = 0;
24 + is_addr6 = is_addr = is_dec /*= is_hex */ = 0;
26 if (found_dig && (opt_len & OT_TIME) && strlen(comma) > 0)