Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-09-20 | remove unneeded semicolons; checked by millert@ | Jonathan Gray | |
2022-03-31 | man pages: add missing commas between subordinate and main clauses | Christian Weisgerber | |
jmc@ dislikes a comma before "then" in a conditional, so leave those untouched. ok jmc@ | |||
2021-09-04 | delete a stray word reported by wilfried dot meindl at gmail dot com; | Ingo Schwarze | |
while here, delete the redundant word "will" right in front of it, too | |||
2020-01-16 | Usually, -width Fl (which is 10n) is too wide and hence ugly. | Ingo Schwarze | |
Change several instances, most of them to the usual -width Ds. | |||
2019-12-30 | Do not perform top-level sort when -c is used with a -k field. | Todd C. Miller | |
From Richard Ipsum | |||
2019-09-06 | More Version 1 AT&T UNIX history. | Ingo Schwarze | |
This became possible because copies of the original v1 manuals have shown up on the Internet some time ago. Reminded by Sevan Janiyan <venture37 at geeklan dot co dot uk>. | |||
2019-06-28 | When system calls indicate an error they return -1, not some arbitrary | Theo de Raadt | |
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future. | |||
2019-06-02 | In manpages, don't escape apostrophes as \'; it's rarely what you want. | Anthony J. Bentley | |
Most of these are correct just as '. A few benefit from Ql or \(aq. But if in doubt, just use '. | |||
2019-05-15 | re-indent bwscoll() after previous commit; no binary change | Ingo Schwarze | |
2019-05-15 | Cleanup: | Ingo Schwarze | |
Delete handling of LC_COLLATE (which has no effect) and delete support for non-ASCII single-byte encodings, allowing to replace the condition byte_sort == 1 with sort_mb_cur_max == 1. Since none of our single-byte character and string functions are locale dependent, also zap inspection of LC_CTYPE while here. For know, keep the code supporting multi-byte encodings even though it is very ugly, it cannot be reached right now, and we have no plans to enable it any time soon. OK millert@ tb@ | |||
2019-05-13 | Delete tentacles of LC_NUMERIC support. | Ingo Schwarze | |
Our libc doesn't support that now and won't in the future. Minus ~90 lines of code, no functional change. OK tb@ | |||
2019-02-24 | short option comes first, followed by the corresponding long option | anton | |
ok jmc@ | |||
2017-06-10 | add missing blanks before several delimiters; found with mandoc -Tlint | Ingo Schwarze | |
2017-01-04 | Fix a crash when "sort -m" is given no files. From Julien Ramseier. | Todd C. Miller | |
2016-10-17 | /var/tmp -> /tmp | Lawrence Teo | |
From Jan Stary. "POSIX doesn't restrict us here" and ok schwarze@ | |||
2016-10-11 | missing .Fl macro, from Jan Stary | Ingo Schwarze | |
2016-07-14 | make several program to use "chown" promise. | Sebastien Marie | |
it allows chown(2) call to change the user or group on a file. - usr.bin/compress : aka gzip - usr.bin/mg : open a file for writing - usr.bin/sed : inplace editing - usr.bin/sort : if outfile equals one of the input files ok deraadt@ tb@ (and a reminder from Remi Locherer) warning: in order to use it, you must have a recent kernel with the new promise. | |||
2015-12-31 | No need for sysexits.h here. | Todd C. Miller | |
2015-12-11 | Use %zu to print size_t's rather than casting to int. | mmcc | |
ok millert@ | |||
2015-10-24 | The default modifier should be copied for empty keys even if -b is | Todd C. Miller | |
specified. From Cedric Krier. | |||
2015-10-18 | Do not warn for sort -o if we can't chown the output temporary file | Todd C. Miller | |
to match the owner of the output file. | |||
2015-10-17 | Pledge; OK millert@ tobias@ | Tim van der Molen | |
2015-10-14 | Copy permissions AND ownership when -o will override an input file. | Tobias Stoeckmann | |
with input by and ok deraadt@, millert@, tim@ | |||
2015-10-13 | Ignore the setuid/setgid/sticky bits when copying the permissions of an input | Tim van der Molen | |
file to the new output file. In preparation for pledge(2). Suggested by and OK millert@ | |||
2015-10-13 | -C and -c allow at most one input file. Ensure this is the case when the | Tim van der Molen | |
input files are specified through --files0-from. OK millert@ | |||
2015-04-05 | Document that some sorts uses -b w/o key fields. | Todd C. Miller | |
2015-04-05 | For the -g flag, treat non-floating point keys as 0, similar to -n. | Todd C. Miller | |
This makes "sort -gu" and "sort -nu" behave similarly and passes our sort regress tests. | |||
2015-04-05 | The -b flag should only apply when key fields are specified. | Todd C. Miller | |
If -b follows -k it has no effect. | |||
2015-04-05 | Do not permute command line arguments but still support the | Todd C. Miller | |
obsolescent "-o outfile" after input files syntax. | |||
2015-04-03 | Only one input file is allowed with the -c/-C flags. | Todd C. Miller | |
2015-04-03 | The combination of -c and -o is not specified by POSIX. In fact, the call | Tobias Stoeckmann | |
"sort -o file -c file" has unspecified behavior and would leave an empty file behind if it was sorted, the original file it was not. If -c (or -C) has been specified, only perform that action and ignore -o among other arguments. While at it, clean up check() internals. with input by and ok millert@ | |||
2015-04-03 | If -S has been supplied multiple times, only take last one into account. | Tobias Stoeckmann | |
Without this patch, multiple -S arguments influence each other. spotted by and ok millert@ | |||
2015-04-02 | murder excessive whitespace | Theo de Raadt | |
2015-04-02 | Prevent integer overflow when parsing -S argument as percentage. | Tobias Stoeckmann | |
Also make sure that the parsed memory amount, stored in a long long, won't be larger than SIZE_MAX to properly support 32 bit systems. with input by and ok millert@ | |||
2015-04-02 | Global variable free_memory is only used in sort.c's set_hw_params, | Tobias Stoeckmann | |
so turn it into a local one. ok millert@ | |||
2015-04-02 | Fixed whitespace issues. | Tobias Stoeckmann | |
ok millert@ | |||
2015-04-02 | Zap some more NULL checks in front of free. | Tobias Stoeckmann | |
ok millert@ | |||
2015-04-02 | No need to strdup environment variable or command line arguments here. | Tobias Stoeckmann | |
ok millert@ | |||
2015-04-02 | Add signal name instead of array index (which is not the signal number) | Tobias Stoeckmann | |
to sigaction error message. with input by and ok millert@ | |||
2015-04-02 | Don't need to include stdint.h | Todd C. Miller | |
2015-04-02 | No need for the umask() dance now that temp files are created | Todd C. Miller | |
with mkstemp(). Also remove useless else after a return. | |||
2015-04-02 | Don't install signal handlers for SIGQUIT, SIGVTALRM, SIGPROF. | Todd C. Miller | |
2015-04-02 | When using mmap() we don't need to keep the open fd around, closing | Todd C. Miller | |
the fd does not unmap the region. | |||
2015-04-02 | closefile() already checks for stdin so no need to check in the caller. | Todd C. Miller | |
2015-04-01 | Check for overflow when handling buffer size suffixes. | Todd C. Miller | |
2015-04-01 | Block signals during tmp_files insertion, so that the signal handler | Theo de Raadt | |
cannot encounter an incoherent list. It was an absolutely tiny signal race. ok millert | |||
2015-04-01 | Use reallocarray instead of malloc. | Todd C. Miller | |
2015-04-01 | Just use sort_reallocarray() everywhere. | Todd C. Miller | |
2015-04-01 | Revert unintentional commit. This will be revisited shortly. | Todd C. Miller | |
2015-04-01 | Style nits, remove whitespace at the start of a function. | Todd C. Miller | |