mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-02-16 12:22:01 +02:00
maint: use more readable operator: "||" rather than "|"
* src/cp.c (make_dir_parents_private): Use "||" rather than "|", so that clang understands there is no undefined pointer dereference.
This commit is contained in:
4
src/cp.c
4
src/cp.c
@@ -411,8 +411,8 @@ make_dir_parents_private (char const *const_dir, size_t src_offset,
|
||||
*slash = '\0';
|
||||
missing_dir = (stat (dir, &stats) != 0);
|
||||
|
||||
if (missing_dir | x->preserve_ownership | x->preserve_mode
|
||||
| x->preserve_timestamps)
|
||||
if (missing_dir || x->preserve_ownership || x->preserve_mode
|
||||
|| x->preserve_timestamps)
|
||||
{
|
||||
/* Add this directory to the list of directories whose
|
||||
modes might need fixing later. */
|
||||
|
||||
Reference in New Issue
Block a user