diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2018-12-15 12:13:58 -0800 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2018-12-15 12:14:49 -0800 |
| commit | a6756257efd4fb957e50177b62af094fecef2745 (patch) | |
| tree | ac65d5c2e5b750d62a9a26412fcd574dc28cce3b /scripts/git-hooks/commit-msg | |
| parent | sync: add NEWS and test for the fix in the previous commit (diff) | |
| download | coreutils-a6756257efd4fb957e50177b62af094fecef2745.tar.gz coreutils-a6756257efd4fb957e50177b62af094fecef2745.zip | |
shred,sort,split: fix ftruncate error reporting
Problem reported for split by Scott Worley (Bug#33761):
* src/shred.c (do_wipefd):
Also report an error if ftruncate fails on a shared memory object.
* src/sort.c (get_outstatus): New function.
(stream_open, avoid_trashing_input): Use it.
* src/sort.c (stream_open):
* src/split.c (create):
If ftruncate fails, do not report an error
unless it is a regular file or a shared memory object.
Diffstat (limited to 'scripts/git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions
