summaryrefslogtreecommitdiff
path: root/usr.bin/sort
AgeCommit message (Collapse)Author
2007-09-01Use an int, not a size_t, to store the return value of snprintf().Matthias Kilian
This gives the later tests against -1 a chance to actually do something. Initially from Igor Zinovik <zinovik@cs.karelia.ru>. ok ray@
2007-08-22sort usage();Jason McIntyre
2007-08-21Fix up the -s description, with help from tom@Todd C. Miller
2007-08-21Add a -s option to make the radix sort be a stable sort. Based onTodd C. Miller
a diff from Eric Gouyer. Closes PR 5553. OK deraadt@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-30- use a consistent text for STANDARDSJason McIntyre
- note which options are extensions to POSIX
2007-04-02The scanf(3) family of functions can return EOF (-1) if an inputMoritz Jodeit
failure occurs. So check it, before blindly adding it to some pointer. ok millert@
2007-03-13Work around gcc optimization bug on sh (landisk). From otto@Todd C. Miller
2007-03-13Use separate buffers in fsort.c and msort.c. Fixes a problem withTodd C. Miller
buffer corruptions for some very large files. Also fixes some TRECHEADER vs. RECHEADER mismatches. Back in after unlock.
2007-03-11some bug (in sort? or compiler) gets hit too late in the release cycle.Theo de Raadt
please try again right after release.
2007-03-07Use separate buffers in fsort.c and msort.c. Fixes a problem withTodd C. Miller
buffer corruptions for some very large files. Also fixes some TRECHEADER vs. RECHEADER mismatches. OK deraadt@ otto@ ray@
2006-12-06Don't access buf[strlen(buf) - 1] for zero-length strings.Ray Lai
OK jaredy@.
2006-11-16Fix undefined behavior (var = ++var).Ray Lai
From Alexey Dobriyan <adobriyan at gmail dot com>. OK otto@, moritz@, and jaredy@.
2006-10-29Remove useless code that can cause a SEGV if a buffer is realloc()ed.Todd C. Miller
Allocate buffers early and in one place instead of two. Make bufend global so it can be updated along with buffer. OK deraadt@
2006-10-28revert previous change; causes segfault when called fromChristian Weisgerber
pkg_mklocatedb/locate.mklocatedb
2006-10-18Remove useless code that can cause a SEGV if a buffer is realloc()ed.Todd C. Miller
Allocate buffers early and in one place instead of two. Fixes PR 5252; OK deraadt
2006-02-14typo in comment; from ray laiJason McIntyre
2005-10-28sort is part of posix so document it as such. more importantly list ourDavid Gwynne
extensions so hopefully people moving scripts to other platforms wont get too confused. this has been bothering me since -z was added. big help from and ok jmc@
2005-10-04clarify behaviour of -u option;Jason McIntyre
ok otto@
2005-10-04document that -k may be specified multiple times,Jason McIntyre
and the effect of doing so; ok otto@
2005-10-04remove ellipsis from -k in usage();Jason McIntyre
2005-10-04remove ellipsis following -k in synopsis; my last commit put thisJason McIntyre
in the wrong place, but i think it will be clearer to remove it altogether and improve the description of -k (to follow); ok otto@
2005-09-28sort options and sync usage();Jason McIntyre
some help from dlg@
2005-09-27add a -z option that allows you to split records on the nul characterDavid Gwynne
('\0'). useful in combination with things like "find . -print0" and "xargs -0". for dewi, a chump. ok deraadt@
2005-08-18Properly initialize 'end' in seq(), fixing a crashJared Yanovich
on input with long lines when the -n flag is given. ok millert
2005-04-11remove silly optimization which should eventually saveMoritz Jodeit
a syscall, when it were not broken. ok otto@
2005-04-11also handle snprintf returning -1, trivialTheo de Raadt
2004-09-14match foo[] between files, instead of foo[] in one, and *foo in anotherTheo de Raadt
2004-09-14ARGSUSED before signal handler with unused signoTheo de Raadt
2004-07-20ansi; khalek@linuxgamers.netTheo de Raadt
2004-03-17do not init SINGL_FLD, SEP_FLAG twice; from robert nagyMichael Shalayeff
2004-03-15only copy extra incomplete crec data if there is any, fixes occasionalNikolay Sturm
failures of locate.updatedb adapted from NetBSD, ok tedu@, millert@
2003-11-15preferred spellingTed Unangst
2003-09-25don't run out of bounds. fixes david's crash during regress.Ted Unangst
ok david deraadt millert
2003-07-14- .Cm Fl -> .FlJason McIntyre
- fix list width
2003-06-26protosTheo de Raadt
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-06Rewrite fixit() to use snprintf() and strtol() with bounds and errorTodd C. Miller
checking done in each place. This also removes the bogus limit on the number of '+' and '-' args. deraadt@ OK
2003-03-31Sync positional arguments equivalence's description with reality.Thierry Deval
ok millert@
2003-03-30Use PATH_MAX, not _POSIX_PATH_MAX for filename buffers.Todd C. Miller
2002-11-09more SEE ALSO fixes.Federico G. Schwindt
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-02-10Typo.Aaron Campbell
2002-01-24fix the history refsMichael Shalayeff
2002-01-04Align the pointers when splitting up a mallocated area.Artur Grabowski
Cures alignment faults on alpha and sparc64. OK: niklas@ ericj@ millert@
2001-11-17Repair brain-damaged struct sigaction initialization.Todd C. Miller
Noticed by Theo.
2001-05-01Remove completely redundant introductory sentences in ENVIRONMENT sections.Aaron Campbell
2001-03-20Prevent "sort -f /dev/null" from segfaulting.Todd C. Miller