diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2025-08-03 08:19:53 -0700 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2025-08-03 19:48:06 -0700 |
| commit | e0100ac746e6ddefeef09e17716c148edc1f995b (patch) | |
| tree | 6017ca72fd3ec4f48bb5cf8bd58874c51e930556 /scripts/git-hooks/commit-msg | |
| parent | tail: track errno more accurately (diff) | |
| download | coreutils-e0100ac746e6ddefeef09e17716c148edc1f995b.tar.gz coreutils-e0100ac746e6ddefeef09e17716c148edc1f995b.zip | |
tail: fix race between read and fstat
* src/tail.c (get_file_status): Remove, since after the changes
described below it would be called in just one place and it’s a
bit clearer to inline by hand.
(tail_file): Don’t call fstat after reading the file, as that
misses changes arriving between read and fstat. Instead, reuse
the fstat done before reading the file.
Diffstat (limited to 'scripts/git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions
