aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/git-hooks/commit-msg
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2025-08-02 16:55:09 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2025-08-03 19:48:06 -0700
commit3655a8ccede900666fbe4be2520358eb4ebc8cb9 (patch)
tree08a4d20d20dde44f01c6c9fa1d8720105a101be8 /scripts/git-hooks/commit-msg
parenttail: omit redundant assignment (diff)
downloadcoreutils-3655a8ccede900666fbe4be2520358eb4ebc8cb9.tar.gz
coreutils-3655a8ccede900666fbe4be2520358eb4ebc8cb9.zip
tail: track errno more accurately
This matters only in some obscure cases hard to test for. * src/tail.c (file_lines, pipe_lines, pipe_bytes, start_bytes) (start_lines, tail_bytes, tail_lines, tail): New return convention, which reports errno. All callers changed. (recheck): Don’t lose track of errno if a regular file is replaced by a symlink. (get_file_status): Set errno to 0 on success. (tail_file): Be more careful about f->errnum. It is now -1 only if the failure was not due to a system call failing.
Diffstat (limited to 'scripts/git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions