]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: simplify set_owner
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 1 Sep 2023 16:14:02 +0000 (09:14 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 1 Sep 2023 22:10:45 +0000 (15:10 -0700)
commitde4a5220f232e9a3814b43c1700736929af86aa0
tree29c27e7e7e0383270f3bce5c4451a7555498d58c
parent74439d15d7f8eae1d942cd96632f4c1c4c9e9e3a
maint: simplify set_owner

* src/copy.c (HAVE_FCHOWN, fchown): Remove.
(fchmod_or_lchmod): Move up.
(fchown_or_lchown): New function.
(set_owner): Use it to simplify.
src/copy.c