summaryrefslogtreecommitdiff
path: root/sed/execute.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2014-12-10 06:43:46 -0800
committerJim Meyering <meyering@fb.com>2014-12-16 15:40:57 -0800
commitbe2d5c0d33d507818d3cb0d3853c61c321a05464 (patch)
treeff228894bd43fd697b85f0ab1a881818a58679ba /sed/execute.c
parent38800587a95d1d74fb6dc9ce54722da5f0c88d0e (diff)
downloadsed-be2d5c0d33d507818d3cb0d3853c61c321a05464.tar.gz
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
Diffstat (limited to 'sed/execute.c')
-rw-r--r--sed/execute.c10
1 files changed, 0 insertions, 10 deletions
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);