]> git.ipfire.org Git - thirdparty/coreutils.git/commit
basenc: fix stripping of '=' chars in some encodings
authorPádraig Brady <P@draigBrady.com>
Thu, 7 Aug 2025 19:39:24 +0000 (20:39 +0100)
committerPádraig Brady <P@draigBrady.com>
Sat, 9 Aug 2025 08:59:00 +0000 (09:59 +0100)
commitc480428e3767cac53dcafa29b03ce31e0da1efc9
tree7839e06c92eaa626da9d8efafd4004405d812227
parent13202995bafc11fc7c881bcdae4c6f10da78c83b
basenc: fix stripping of '=' chars in some encodings

* src/basenc.c (do_decode): With -i ensure we strip '=' chars
if there is no padding for the chosen encoding.
* tests/basenc/basenc.pl: Add a test case.
* NEWS: Mention the bug fix.
NEWS
src/basenc.c
tests/basenc/basenc.pl