summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-08-27 09:30:11 +0000
committerJim Meyering <jim@meyering.net>2000-08-27 09:30:11 +0000
commit739185ba7427cb9cfd656b3771b69f44cb8de60d (patch)
tree8f9b46e56f73e44a255e3c2d0a228d4427053813
parent6bf3479c9f21791b1deecb82390c45a0afae8bc8 (diff)
downloadcoreutils-739185ba7427cb9cfd656b3771b69f44cb8de60d.tar.xz
.
-rw-r--r--old/fileutils/ChangeLog17
1 files changed, 17 insertions, 0 deletions
diff --git a/old/fileutils/ChangeLog b/old/fileutils/ChangeLog
index ec784bf98..e5c86defe 100644
--- a/old/fileutils/ChangeLog
+++ b/old/fileutils/ChangeLog
@@ -1,5 +1,22 @@
2000-08-27 Jim Meyering <meyering@lucent.com>
+ * src/copy.c (copy_reg): New parameters: X and NEW_DST.
+ Remove the SPARSE_MODE parameter. Update caller.
+ Perform POSIX-mandated (for cp) open-with-O_WRONLY|O_TRUNC when
+ the regular destination file exists; upon failure, unlink
+ that existing file, then open again, but with O_WRONLY|O_CREAT.
+ (copy_internal): `force' in not related to interactive; remove
+ the conjunct.
+ Remove the entire `else if (x->force)' block; justifying
+ removal of the non-directory part is easy: POSIX requires we try
+ to open an existing regular file, so we can't unlink it beforehand.
+ The part that changes the mode on a directory to allow overwriting
+ isn't necessary.
+
+ * src/copy.c (copy_reg): Rename two goto labels.
+ (copy_internal): Set `new_dst' when the move_mode rename fails,
+ since we then unlink the destination file.
+
* src/cp.c (usage): --force is independent of --interactive.
2000-08-24 Jim Meyering <meyering@lucent.com>