]> git.ipfire.org Git - thirdparty/coreutils.git/commit
dd: warn about counts specified with confusing 0x prefix
authorPádraig Brady <P@draigBrady.com>
Fri, 4 Nov 2016 16:55:58 +0000 (16:55 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 4 Nov 2016 20:38:32 +0000 (20:38 +0000)
commitc6656eed6ae9536812012a1b0d0b31ec960acf23
treef2cbda8c7150d028de4cb2ccdacec58c82919888
parentd0ddfadfb27def2861f35b1a45190a4c1780b257
dd: warn about counts specified with confusing 0x prefix

* src/dd.c (parse_integer): Suggest to use "00x" instead of "0x",
which is significant for the "count", "seek", and "skip" operands.
* tests/dd/misc.sh: Add a test case.
Fixes http://bugs.gnu.org/24874
src/dd.c
tests/dd/misc.sh