diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2010-12-16 00:03:29 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2010-12-16 00:04:32 -0800 |
commit | f3c584d1e08646704cb46f4e5b6afc4afef3f70a (patch) | |
tree | 7a15e6158943421dca1153c3018d7aa6fdd21c1e /NEWS | |
parent | 33a5de5a0efd73abbb532dbd09f5afd23c511484 (diff) | |
download | coreutils-f3c584d1e08646704cb46f4e5b6afc4afef3f70a.tar.xz |
sort: don't dump core when merging from input twice
* NEWS: Document this.
* src/sort.c (avoid_trashing_input): The previous fix to this
function didn't fix all the problems with this code. Replace it
with something simpler: just copy the input file. This doesn't
change the number of files, so return void instead of the updated
file count. Caller changed.
* tests/misc/sort-merge-fdlimit: Test for the bug.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -23,6 +23,8 @@ GNU coreutils NEWS -*- outline -*- sort --compress no longer mishandles subprocesses' exit statuses. + sort -m -o f f ... f no longer dumps core when file descriptors are limited. + ** New features split accepts the --number option to generate a specific number of files. |