From: Paul Eggert Date: Wed, 17 Nov 2021 00:51:21 +0000 (-0800) Subject: cp: minor clarity tweak X-Git-Tag: v9.1~182 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0060ef82ee14a539aa2b1e462db74eb2f027c80e;p=thirdparty%2Fcoreutils.git cp: minor clarity tweak * src/copy.c (copy_reg): Use cached data_copy_required. --- diff --git a/src/copy.c b/src/copy.c index f30d984d1a..52e0aefb7a 100644 --- a/src/copy.c +++ b/src/copy.c @@ -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;