]> git.ipfire.org Git - thirdparty/coreutils.git/commit
ptx: avoid --format long option falling through into --help
authorBernhard Voelker <mail@bernhard-voelker.de>
Wed, 26 Mar 2014 08:02:42 +0000 (09:02 +0100)
committerBernhard Voelker <mail@bernhard-voelker.de>
Wed, 26 Mar 2014 10:29:53 +0000 (11:29 +0100)
commit5de5d8a5c0aa864bbf79a299cf5b9d5a1547941a
treea64ea5bbaac0a3f28dfb3bd7b68e933618758e38
parent25c2f0d617259ed9bf9398b5042db78c8d17245d
ptx: avoid --format long option falling through into --help

* src/ptx.c (main): Add a 'break' after the --format handling case.
Otherwise it would fall through into the usage case.
* tests/misc/ptx.pl: Add test cases for --format=tex and --format=roff.
* NEWS (Bug fixes): Mention the fix.
Bug introduced in 1999-04-04 commit, SH-UTILS-1_16f-269-gd815c15.
Spotted by coverity (MISSING_BREAK).
NEWS
src/ptx.c
tests/misc/ptx.pl