summaryrefslogtreecommitdiff
path: root/usr.bin/sort/files.c
AgeCommit message (Collapse)Author
2001-02-04Bring in some recent fixup's from NetBSD. This allows lines longer than 65522Eric Jackson
to be properly sorted. Many other cleanup's done, and depreciate register. millert@ and deraadt@ ok.
2000-06-30warnx?/errx? paranoia (use "%s" not a bare string unless it is aTodd C. Miller
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).
1997-06-3064bit fixes. Some of these are a bit bogus as there were "long"sTodd C. Miller
meant to be file offsets for fseek(3). However, those values could never be > an int anyay so it is not a problem.
1997-06-16Cosmetic cleanup, mostly KNF.Todd C. Miller
1997-01-22Fix some err(3) usage and usage string.Todd C. Miller
1997-01-22Fix off-by-one differently--add an extra byte to buffer (ick).Todd C. Miller
Don't dump core on empty file.
1997-01-20sort(1) from 4.4BSD-lite2 with minor tweaks and bug fixes by me.Todd C. Miller