Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add parentheses to suppress compiler warning. | 2014-10-26 | 1 | -3/+3 | |
| | | | | | | sort.c:295:35: warning: '&&' within '||' [-Wlogical-op-parentheses] ok guenther@ | ||||
* | Userland reallocarray() audit. | 2014-10-11 | 1 | -3/+3 | |
| | | | | | | | Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@ | ||||
* | repair buffer resizing "undershoot", and some minor issues with | 2013-11-13 | 1 | -3/+4 | |
| | | | | | math on void * assistance from guenther, ok millert | ||||
* | fdopen(3) return a FILE * not an int, so compare against NULL. | 2012-10-30 | 1 | -2/+2 | |
| | | | | | | no functional change OK millert@ | ||||
* | implement -C (silent -c), required by POSIX.1-2008; | 2009-12-22 | 1 | -6/+12 | |
| | | | | | patch from Daniel Dickman <didickman at gmail dot com> tweaked by me; "looks ok" millert@, manual help and ok jmc@ | ||||
* | Don't catch a signal if we inherited it as ignored. Instigated by | 2009-10-28 | 1 | -3/+6 | |
| | | | | | | comments from Matt Fisher (mfisher_ix at maine.rr.com). ok otto@ | ||||
* | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | 2009-10-27 | 1 | -15/+1 | |
| | | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms | ||||
* | sort usage(); | 2007-08-22 | 1 | -3/+3 | |
| | |||||
* | Add a -s option to make the radix sort be a stable sort. Based on | 2007-08-21 | 1 | -5/+8 | |
| | | | | a diff from Eric Gouyer. Closes PR 5553. OK deraadt@ | ||||
* | Use separate buffers in fsort.c and msort.c. Fixes a problem with | 2007-03-13 | 1 | -6/+3 | |
| | | | | | buffer corruptions for some very large files. Also fixes some TRECHEADER vs. RECHEADER mismatches. Back in after unlock. | ||||
* | some bug (in sort? or compiler) gets hit too late in the release cycle. | 2007-03-11 | 1 | -3/+6 | |
| | | | | please try again right after release. | ||||
* | Use separate buffers in fsort.c and msort.c. Fixes a problem with | 2007-03-07 | 1 | -6/+3 | |
| | | | | | buffer corruptions for some very large files. Also fixes some TRECHEADER vs. RECHEADER mismatches. OK deraadt@ otto@ ray@ | ||||
* | Remove useless code that can cause a SEGV if a buffer is realloc()ed. | 2006-10-29 | 1 | -2/+10 | |
| | | | | | | Allocate buffers early and in one place instead of two. Make bufend global so it can be updated along with buffer. OK deraadt@ | ||||
* | revert previous change; causes segfault when called from | 2006-10-28 | 1 | -9/+2 | |
| | | | | pkg_mklocatedb/locate.mklocatedb | ||||
* | Remove useless code that can cause a SEGV if a buffer is realloc()ed. | 2006-10-18 | 1 | -2/+9 | |
| | | | | | Allocate buffers early and in one place instead of two. Fixes PR 5252; OK deraadt | ||||
* | remove ellipsis from -k in usage(); | 2005-10-04 | 1 | -3/+3 | |
| | |||||
* | sort options and sync usage(); | 2005-09-28 | 1 | -4/+5 | |
| | | | | some help from dlg@ | ||||
* | add a -z option that allows you to split records on the nul character | 2005-09-27 | 1 | -4/+11 | |
| | | | | | | | ('\0'). useful in combination with things like "find . -print0" and "xargs -0". for dewi, a chump. ok deraadt@ | ||||
* | remove silly optimization which should eventually save | 2005-04-11 | 1 | -5/+3 | |
| | | | | a syscall, when it were not broken. ok otto@ | ||||
* | ARGSUSED before signal handler with unused signo | 2004-09-14 | 1 | -2/+3 | |
| | |||||
* | do not init SINGL_FLD, SEP_FLAG twice; from robert nagy | 2004-03-17 | 1 | -3/+2 | |
| | |||||
* | protos | 2003-06-26 | 1 | -3/+3 | |
| | |||||
* | mostly ansi cleanup; pval ok | 2003-06-10 | 1 | -10/+6 | |
| | |||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-03 | 1 | -7/+3 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | Use PATH_MAX, not _POSIX_PATH_MAX for filename buffers. | 2003-03-30 | 1 | -4/+4 | |
| | |||||
* | Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. | 2002-02-16 | 1 | -5/+5 | |
| | |||||
* | Repair brain-damaged struct sigaction initialization. | 2001-11-17 | 1 | -4/+6 | |
| | | | | Noticed by Theo. | ||||
* | Bring in some recent fixup's from NetBSD. This allows lines longer than 65522 | 2001-02-04 | 1 | -3/+6 | |
| | | | | | to be properly sorted. Many other cleanup's done, and depreciate register. millert@ and deraadt@ ok. | ||||
* | mark remaining signal races which are difficult to fix, and fix a few partially | 2001-01-19 | 1 | -3/+3 | |
| | |||||
* | warnx?/errx? paranoia (use "%s" not a bare string unless it is a | 2000-06-30 | 1 | -8/+8 | |
| | | | | | | | | | constant). These are not security holes but it is worth fixing them anyway both for robustness and so folks looking for examples in the tree are not misled into doing something potentially dangerous. Furthermore, it is a bad idea to assume that pathnames will not include '%' in them and that error routines don't return strings with '%' in them (especially in light of the possibility of locales). | ||||
* | Using mkstemp to create permanent files is possible, but then | 1999-11-30 | 1 | -3/+11 | |
| | | | | | | the file mode needs tweaking to look like normal file creation. Approved by millert@, noticed by my students at Epita. Thanks guys ! | ||||
* | Dynamically allocate memory for structures whose sizes are based on the | 1999-05-24 | 1 | -9/+21 | |
| | | | | number of keys given. Closes PR #825. | ||||
* | put -H in synopsis; aaron@ug.cs.dal.ca | 1998-07-24 | 1 | -3/+3 | |
| | |||||
* | use warnx() | 1998-07-20 | 1 | -3/+4 | |
| | |||||
* | indent | 1998-07-20 | 1 | -3/+3 | |
| | |||||
* | fix usage correctly | 1998-07-20 | 1 | -5/+7 | |
| | |||||
* | consolidate printfs | 1998-07-20 | 1 | -4/+4 | |
| | |||||
* | 64bit fixes. Some of these are a bit bogus as there were "long"s | 1997-06-30 | 1 | -3/+3 | |
| | | | | | meant to be file offsets for fseek(3). However, those values could never be > an int anyay so it is not a problem. | ||||
* | Normalize treatment of -n option. Don't know why it was ever special-cased | 1997-06-16 | 1 | -11/+5 | |
| | | | | (since it was broken that way). Fixes PR user/220. | ||||
* | Cosmetic cleanup, mostly KNF. | 1997-06-16 | 1 | -9/+28 | |
| | |||||
* | for implied stdin, do not corrupt argv[0] | 1997-01-26 | 1 | -5/+11 | |
| | |||||
* | Fix some err(3) usage and usage string. | 1997-01-22 | 1 | -7/+7 | |
| | |||||
* | sort(1) from 4.4BSD-lite2 with minor tweaks and bug fixes by me. | 1997-01-20 | 1 | -0/+297 | |