]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cp: improve umask caching
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 14 Sep 2025 18:46:28 +0000 (11:46 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 Sep 2025 23:15:10 +0000 (16:15 -0700)
commit8339970b155d6d3ed5623325bb577b29b59948d6
tree4a717435f09eecbf97a993b89668a0fb88b7d061
parentf4dcc2a495c390296296ad262b5a71996d0f6a86
cp: improve umask caching

* src/copy.c (cached_umask): Avoid syscalls when cached umask is 0.
This can also help the compiler’s static analysis.
src/copy.c