← Commit list

1854bc1aa

Denys Vlasenko
Denys Vlasenko
2010-04-06
FAILED Duration: 29s

Subject

hexdump: make -s 0xNNNNN work

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

util-linux/hexdump.c+2 -2
@@ -92,8 +92,8 @@ int hexdump_main(int argc, char **argv)
if (ch == 'n') {
dumper->dump_length = xatoi_u(optarg);
} /* else */
- if (ch == 's') {
- dumper->dump_skip = xatoul_range_sfx(optarg, 0, LONG_MAX, suffixes);
+ if (ch == 's') { /* compat: -s accepts hex numbers too */
+ dumper->dump_skip = xstrtoul_range_sfx(optarg, /*base:*/ 0, /*lo:*/ 0, /*hi:*/ LONG_MAX, suffixes);
} /* else */
if (ch == 'v') {
dumper->dump_vflag = ALL;