diff options
author | Jim Meyering <meyering@fb.com> | 2014-12-10 06:43:46 -0800 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2014-12-16 15:40:57 -0800 |
commit | be2d5c0d33d507818d3cb0d3853c61c321a05464 (patch) | |
tree | ff228894bd43fd697b85f0ab1a881818a58679ba /sed/execute.c | |
parent | 38800587a95d1d74fb6dc9ce54722da5f0c88d0e (diff) | |
download | sed-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.c | 10 |
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); |