util-linux/text-utils
Sami Kerola 4ccf113704 hexdump: revert global exitval variable change
The change f2a037fb7b had unfavorable
effect of making hexdump to return non-zero exit value always.

This happen because oversight when 'exitval' gets to be set.  By clance,
one might expect main() to call next() which will return value for
'exitval'.  That assessment misses later call chain main() -> display()
-> get() -> next(), which in reverse should return correct value for
'exitval'.

It was mentioned in util-linux maillist that Ondrej Oprala is working on
major renewal of the hexdump .  That in mind it seems best to simply to
revert the global 'exitval' and avoid conflict with Ondrej's work.

Reference: http://markmail.org/message/sbnvuhkboreujj5p
Reported-by: Dave Reisner <d@falconindy.com>
CC: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-09-10 12:57:31 +02:00
..
Makemodule.am build-sys: use -Wno-clobbered for some BSD crap 2013-05-07 09:50:22 +02:00
col.1 docs: col.1: fix manual page name section [checkmans.sh] 2013-04-09 12:26:47 +02:00
col.c libmount, col: remove redundant null checks [smatch scan] 2013-04-09 12:26:42 +02:00
colcrt.1 docs: align colcrt.1 with howto-man-page.txt 2011-10-03 20:51:40 +02:00
colcrt.c textual: spell and encode the name of Arkadiusz Miśkiewicz correctly 2013-02-06 11:15:02 +01:00
colrm.1 docs: align colrm.1 with howto-man-page.txt 2011-10-03 20:51:40 +02:00
colrm.c textual: spell and encode the name of Arkadiusz Miśkiewicz correctly 2013-02-06 11:15:02 +01:00
column.1 docs: slightly correct the man page of column 2013-06-07 12:11:20 +02:00
column.c column: use variable lenght printf field width to wprint blanks 2013-08-05 10:47:42 +02:00
conv.c hexdump: remove od functionality in favor to GNU coreutils od 2010-12-30 23:11:43 +01:00
display.c hexdump: revert global exitval variable change 2013-09-10 12:57:31 +02:00
hexdump.1 hexdump: add long options to the command 2013-04-26 13:26:00 +02:00
hexdump.c hexdump: revert global exitval variable change 2013-09-10 12:57:31 +02:00
hexdump.h hexdump: revert global exitval variable change 2013-09-10 12:57:31 +02:00
hexsyntax.c hexdump: add long options to the command 2013-04-26 13:26:00 +02:00
line.1 docs: uniformize the header and footer lines in man pages 2011-08-22 10:39:21 +02:00
line.c docs: add deprecation comments 2012-03-18 14:28:03 +01:00
more.1 docs: align more.1 with howto-man-page.txt 2011-10-03 20:51:40 +02:00
more.c more: make output redirection more efficient 2013-08-05 10:47:47 +02:00
parse.c textual: spell and encode the name of Arkadiusz Miśkiewicz correctly 2013-02-06 11:15:02 +01:00
pg.1 pg: normalize formatting of the man page, and tweak some of its wording 2011-08-22 10:39:27 +02:00
pg.c pg.c: Add --help and --version 2013-06-18 10:49:35 +02:00
rev.1 docs: make the section AVAILABILITY always come last in man pages 2013-03-20 14:09:24 +01:00
rev.c rev: use string printing rather than character output 2013-08-01 13:35:39 +02:00
tailf.1 standard SEE ALSO section of man pages 2013-05-13 14:42:59 +02:00
tailf.c various: fix variable and function declarations [smatch scan] 2013-04-09 12:17:20 +02:00
ul.1 ul: cleanup usage() and man page 2013-04-05 12:43:51 +02:00
ul.c ul: use string printing function 2013-07-09 14:25:55 +02:00