summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-12-30 09:34:31 +0100
committerJim Meyering <jim@meyering.net>2006-12-30 09:34:31 +0100
commit67b9752cd184d19e791c2e14275518956f441bfc (patch)
tree0846a89f38c7fa2bab1db4ada6a7b5702af02879
parent88891aef7e24be24b3de49c91c25dc2049d08ffd (diff)
downloadcoreutils-67b9752cd184d19e791c2e14275518956f441bfc.tar.xz
* src/copy.c (copy_reg): Rewrite a comment that was rendered
inaccurate by the 2006-10-18 change.
-rw-r--r--ChangeLog5
-rw-r--r--src/copy.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 658076e59..1447f20b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-12-30 Jim Meyering <jim@meyering.net>
+
+ * src/copy.c (copy_reg): Rewrite a comment that was rendered
+ inaccurate by the 2006-10-18 change.
+
2006-12-28 Jim Meyering <jim@meyering.net>
When moving "up" the hierarchy, be careful to remove a just-emptied
diff --git a/src/copy.c b/src/copy.c
index 24c725132..bdb8a1f2f 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -295,8 +295,8 @@ copy_reg (char const *src_name, char const *dst_name,
goto close_src_desc;
}
- /* These semantics are required for cp.
- The if-block will be taken in move_mode. */
+ /* The semantics of the following open calls are mandated
+ by the specs for both cp and mv. */
if (! *new_dst)
{
dest_desc = open (dst_name, O_WRONLY | O_TRUNC | O_BINARY);