cp: minor clarity tweak

* src/copy.c (copy_reg): Use cached data_copy_required.
This commit is contained in:
Paul Eggert committed 2021-11-16 16:51:44 -08:00
1 parent 08930f21cb
commit 0060ef82ee
1 file changed
+1 -1
+1 -1
View File
@@ -1174,7 +1174,7 @@ copy_reg (char const *src_name, char const *dst_name,
if (! *new_dst)
{
int open_flags =
O_WRONLY | O_BINARY | (x->data_copy_required ? O_TRUNC : 0);
O_WRONLY | O_BINARY | (data_copy_required ? O_TRUNC : 0);
dest_desc = open (dst_name, open_flags);
dest_errno = errno;