mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
cp: minor clarity tweak
* src/copy.c (copy_reg): Use cached data_copy_required.
This commit is contained in:
1 parent
08930f21cb
commit
0060ef82ee
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user