summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-09-25 03:08:40 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-09-25 03:08:40 +0000
commit1e32f96bf215be0598453da00c43cbae65a0a174 (patch)
tree4a1d943e01c43aadc17c77a11207e7950b7a60af /ChangeLog
parentaa5f98288acf33a20cfbc9eff82483ab68ba13e7 (diff)
downloadcoreutils-1e32f96bf215be0598453da00c43cbae65a0a174.tar.xz
Prefer fchown to chown and fchmod to chmod when copying regular files.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog13
1 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5654bfe99..9e832a928 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,18 @@
-2005-09-24 Jim Meyering <jim@meyering.net>
+2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
* Version 5.3.1-cvs.
+ * src/copy.c (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.
+
+2005-09-24 Jim Meyering <jim@meyering.net>
+
* src/shred.c: Use `#ifdef HAVE_CONFIG_H', not `#if HAVE_CONFIG_H',
for consistency with gnulib.
* src/dircolors.c: Likewise.