From 5de5d8a5c0aa864bbf79a299cf5b9d5a1547941a Mon Sep 17 00:00:00 2001 From: Bernhard Voelker Date: Wed, 26 Mar 2014 09:02:42 +0100 Subject: 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 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index f68ab4f7c..582f06082 100644 --- a/NEWS +++ b/NEWS @@ -31,6 +31,9 @@ GNU coreutils NEWS -*- outline -*- ln -sr '' F no longer segfaults. Now works as expected. [bug introduced with the --relative feature in coreutils-8.16] + ptx --format long option parsing no longer falls through into the --help case. + [bug introduced in TEXTUTILS-1_22i] + shuf --repeat no longer dumps core if the input is empty. [bug introduced with the --repeat feature in coreutils-8.22] -- cgit v1.2.3-70-g09d2