summaryrefslogtreecommitdiff
path: root/src/copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/copy.c')
-rw-r--r--src/copy.c4
1 files changed, 2 insertions, 2 deletions
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);