Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/usr.bin/sort

On Sat, 26 Sep 2009 21:16:55 +0000
David Laight <> wrote:

> Modified Files:
>       src/usr.bin/sort: files.c fsort.c fsort.h msort.c sort.c sort.h tmp.c
> Log Message:
> Move all the fopen() calls out of the record read routines into the callers.
> Split the merge sort so that fsort() can pass the 'FILE *' of the temporary
> files to be merged into the merge code.
> Don't rely on realloc() not moving the end address of a buffer!
> Rework merge sort so that it sorts pointers to 'struct mfile' and only
> copies about sort record descriptors.
> No functional change intended.

I think this qualifies as a functional change :-)

# find /usr/pkg | sort
Memory fault (core dumped)

Let me know off-list if you need the find(1) output.

Home | Main Index | Thread Index | Old Index