From be2d5c0d33d507818d3cb0d3853c61c321a05464 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 10 Dec 2014 06:43:46 -0800 Subject: remove support for the 'L' (fmt/flow-paragraph) command * sed/Makefile.am (sed_SOURCES): Remove fmt.c. * sed/execute.c (execute_program): * sed/fmt.c: Remove file. * sed/sed.h (fmt): Remove declaration. * doc/sed.texi: Remove documentation for 'L' command. * doc/sed-in.texi: Likewise. * NEWS (Feature removal): Document it. Prompted by the report from Jodie Cunningham that using this command with a large number could cause sed to segfault: https://bugs.launchpad.net/ubuntu/+source/sed/+bug/1400575 --- sed/execute.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'sed/execute.c') diff --git a/sed/execute.c b/sed/execute.c index fa6fe1d..f398e7c 100644 --- a/sed/execute.c +++ b/sed/execute.c @@ -1353,16 +1353,6 @@ execute_program(struct vector *vec, struct input *input) : cur_cmd->x.int_arg); break; - case 'L': - output_missing_newline(&output_file); - fmt(line.active, line.active + line.length, - cur_cmd->x.int_arg == -1 - ? lcmd_out_line_len - : cur_cmd->x.int_arg, - output_file.fp); - flush_output(output_file.fp); - break; - case 'n': if (!no_default_output) output_line(line.active, line.length, line.chomped, &output_file); -- cgit v1.2.1