[git commit] hexdump: fix regression with -n4 -e '"%u"'

Denys Vlasenko vda.linux at googlemail.com
Sun Oct 11 21:36:27 UTC 2026


commit: https://git.busybox.net/busybox/commit/?id=7476cd280db821fcab14d7b5bcdc49fb4a71b708
branch: https://git.busybox.net/busybox/log/?h=master

Fix bug introduced in busybox 1.37.0 that broke kernel builds.

Fixes commit e2287f99fe6f (od: for !DESKTOP, match output more closely
to GNU coreutils 9.1, implement -s)

Signed-off-by: Natanael Copa <ncopa at alpinelinux.org>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 testsuite/hexdump.tests | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/testsuite/hexdump.tests b/testsuite/hexdump.tests
index d2c0a5dc8..d3707a8f4 100755
--- a/testsuite/hexdump.tests
+++ b/testsuite/hexdump.tests
@@ -145,4 +145,10 @@ testing "hexdump -n4 -e '\"%u\"' (big endian)" \
 	"\x4e\x61\xbc\x00AAAA"
 SKIP=
 
+testing "hexdump -n4 -e '\"%u\"'" \
+	"hexdump -n4 -e '\"%u\"'" \
+	"12345678" \
+	"" \
+	"\x4e\x61\xbc\x00AAAA"
+
 exit $FAILCOUNT


More information about the busybox-cvs mailing list