]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hexdump: print sensible message when all input file arguments fail
authorSami Kerola <kerolasa@iki.fi>
Sat, 16 Jun 2012 20:30:04 +0000 (22:30 +0200)
committerSami Kerola <kerolasa@iki.fi>
Sun, 17 Jun 2012 15:59:59 +0000 (17:59 +0200)
commit3c44e03f8cb77572911a7bf2ecbcbb3e0c27a4fc
tree06bfa773ba06cdee083af6df4812c66468828c94
parent38483b86e39460dbe4f993f603fe0378d53d7cba
hexdump: print sensible message when all input file arguments fail

Earlier hexdump printed unnecessary, and perhaps even misleading, 'bad
file descriptor' message.

$ hexdump foobar
hexdump: foobar: No such file or directory
hexdump: foobar: Bad file descriptor

The message is changed to

$ hexdump foobar
hexdump: foobar: No such file or directory
hexdump: all input file arguments failed

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
text-utils/display.c