maint: simplify set_owner
commitde4a5220f232e9a3814b43c1700736929af86aa0
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 1 Sep 2023 16:14:02 +0000 (1 09:14 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 1 Sep 2023 22:10:45 +0000 (1 15:10 -0700)
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