(HAVE_FCHMOD, HAVE_FCHOWN): Define to 0 if not defined.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 25 Sep 2005 03:07:33 +0000 (03:07 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 25 Sep 2005 03:07:33 +0000 (03:07 +0000)
commit7fc308db7e311cbebb66cda121a6d06138ed4fad
treefb5ae1e8ae4c4cb88572fa5289ec48d71c95192c
parent545dd954d98c611e9b157a718d472563d1e746ad
(HAVE_FCHMOD, HAVE_FCHOWN): Define to 0 if not defined.
(copy_reg): New args CHOWN_SUCCEDED and DST_SB.  All callers changed.
Add a "goto close_src_and_dst_desc;" that was missing in the
previous patch.
(copy_reg) [HAVE_FCHOWN]: Prefer fchown to chown.
(copy_reg) [HAVE_FCHMOD]: Prefer fchmod to chmod.
(copy_internal): Don't invoke chown if fchown worked,
and likewise for chmod and fchmod.
src/copy.c