diff options
author | Jim Meyering <jim@meyering.net> | 2001-03-02 02:58:30 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-03-02 02:58:30 +0000 |
commit | 871b2ea818324a94e453eeda1cab808a15381f09 (patch) | |
tree | c0563bb32e899e56a23277b13620367571614783 /old | |
parent | 2679dfb639f637cd6a0cdb525844e93bce5e8acb (diff) | |
download | coreutils-871b2ea818324a94e453eeda1cab808a15381f09.tar.xz |
*** empty log message ***
Diffstat (limited to 'old')
-rw-r--r-- | old/textutils/ChangeLog | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/old/textutils/ChangeLog b/old/textutils/ChangeLog index 8f5530ca6..805bf8055 100644 --- a/old/textutils/ChangeLog +++ b/old/textutils/ChangeLog @@ -1,3 +1,30 @@ +2001-02-25 Paul Eggert <eggert@twinsun.com> + + 'sort' race condition fixes. + + Defend against a DoS attack where someone else creates a + temporary file with the same name as ours. Use mkstemp to do + this, supplying our own mkstemp if the system doesn't have one. + + Also, fix a race condition during cleanup on hosts without + sigaction. + + * src/sort.c (NAME_MAX_IN_DIR): Remove. + (sigprocmask, sigset_t): New macros, defined only on older hosts. + (caught_signals): New var. + (xtmpfopen, tempname): Removed. + (create_temp_file): New function, combining the functions of the old + xtmpfopen and tempname. All callers changed. + Use mkstemp to create the file. + (sighandler): On hosts without sigaction, ignore signals while + cleaning up, instead of letting them interrupt cleanup. + (main): Initialize caught_signals. On hosts with sigaction, block all + caught signals while handling one. Remove duplicate code. + + * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system + lacks mkstemp. Compile our own tempname.c if we compile our own + mkstemp.c, as mkstemp relies on tempname. + 2001-02-22 Jim Meyering <meyering@lucent.com> * src/sort.c (keycompare): Move declarations of locals, lena and lenb, |