diff options
| author | Eric Blake <ebb9@byu.net> | 2009-11-05 12:19:45 -0700 |
|---|---|---|
| committer | Eric Blake <ebb9@byu.net> | 2009-11-07 10:10:25 -0700 |
| commit | c768e2231b89901a2e29c3bf96c027b64f8646d9 (patch) | |
| tree | ef0381745bb5f50fd882100375921cccfd3ddd87 /src/shuf.c | |
| parent | maint: make du's cycle-detection code consistent (diff) | |
| download | coreutils-c768e2231b89901a2e29c3bf96c027b64f8646d9.tar.gz coreutils-c768e2231b89901a2e29c3bf96c027b64f8646d9.zip | |
mktemp: fix bug with -q and closed stdout
If stdin or stdout is closed, then freopen(,stderr) can violate
the premise that STDERR_FILENO==fileno(stderr), which in turn
breaks mktemp -q.
* bootstrap.conf (gnulib_modules): Add freopen-safer.
* src/mktemp.c (includes): Use stdio--.h.
* tests/misc/close-stdout: Enhance test to catch bug.
Diffstat (limited to 'src/shuf.c')
0 files changed, 0 insertions, 0 deletions
