From: Otto Moerbeek Date: Fri, 11 Dec 2020 10:57:56 +0000 (+0100) Subject: force 1 byte reads for od X-Git-Tag: auth-4.4.0~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9853%2Fhead;p=thirdparty%2Fpdns.git force 1 byte reads for od (cherry picked from commit e1d66be3a14e28d446da3206f0f661d4ea990193) --- diff --git a/pdns/incfiles b/pdns/incfiles index 7d55d92301..09f6773897 100755 --- a/pdns/incfiles +++ b/pdns/incfiles @@ -7,7 +7,7 @@ for a in $@ do c=$(echo $a | tr "/.-" "___") echo "static const unsigned char ${c}Data[] = {" - od -v -t x "$a" | sed 's/^[0-7]*//' | sed 's/\([0-9a-f][0-9a-f]\)/0x\1,/g' + od -v -t x1 "$a" | sed 's/^[0-7]*//' | sed 's/\([0-9a-f][0-9a-f]\)/0x\1,/g' echo "};" echo "static const string g_$c{(const char*)${c}Data, sizeof(${c}Data)};" done