summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-01-04 16:46:44 +0100
committerJim Meyering <meyering@redhat.com>2010-01-04 16:46:44 +0100
commitdc0f5eb6a01b759c92478be7f21de3e685ebfbca (patch)
treeb341ff81fb14f5a087562b167b980898beec430f /src
parent0faf3bf874936d7e0c6f03eac5d6fe015af50743 (diff)
downloadcoreutils-dc0f5eb6a01b759c92478be7f21de3e685ebfbca.tar.xz
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.
Diffstat (limited to 'src')
-rw-r--r--src/cp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cp.c b/src/cp.c
index 980c0589d..b2a726906 100644
--- a/src/cp.c
+++ b/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. */