From f3c584d1e08646704cb46f4e5b6afc4afef3f70a Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 16 Dec 2010 00:03:29 -0800 Subject: 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. --- NEWS | 2 ++ 1 file changed, 2 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index e98b815bc..429a1b76a 100644 --- a/NEWS +++ b/NEWS @@ -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. -- cgit v1.2.3-70-g09d2