diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2021-08-15 21:29:38 -0700 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-08-15 21:32:09 -0700 |
| commit | bbb19b18687d5572dcbe7bbb1a48c8ee0f21786b (patch) | |
| tree | 2ef97eca5bc68fe9b85c4958d2f91d74911721c7 /scripts/git-hooks/commit-msg | |
| parent | maint: update .gitignore (diff) | |
| download | coreutils-bbb19b18687d5572dcbe7bbb1a48c8ee0f21786b.tar.gz coreutils-bbb19b18687d5572dcbe7bbb1a48c8ee0f21786b.zip | |
chmod: fix use of uninitialized var if -v
Problem reported by Michael Debertol (Bug#50070).
* NEWS: Mention the fix.
* src/chmod.c (struct change_status): New struct, replacing the
old enum Change_status. All uses changed.
(describe_change): Distinguish between cases depending on
whether 'stat' or its equivalent succeeded. Report a line
of output even if 'stat' failed, as that matches the documentation.
Rework to avoid casts.
(process_file): Do not output nonsense modes computed from
uninitialized storage, removing a couple of IF_LINTs. Simplify by
defaulting to CH_NO_STAT.
Diffstat (limited to 'scripts/git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions
