ddns broken on big-endian systems
|Reported by:||phrh@…||Owned by:||developers|
|Priority:||normal||Milestone:||Barrier Breaker 14.07|
|Keywords:||dyndns ddns shell_get||Cc:||ebishop@…|
The shell_get program used by ddns has an encode_base64 function, which uses the 16-bit output of hexdump, and pipes it to awk which manually flips the bit order.
However, on big-endian systems, this causes every other byte in the authentication string to be flipped.
The net result is that instead of "uname:password", the base64 encoding was "numa:eapssowdr".
This patch should solve the problem by using a one-byte format string for hexdump:
-e '1/1 "%02x"'