]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: use more readable operator: "||" rather than "|"
authorJim Meyering <meyering@redhat.com>
Mon, 4 Jan 2010 15:46:44 +0000 (16:46 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 4 Jan 2010 15:46:44 +0000 (16:46 +0100)
* src/cp.c (make_dir_parents_private): Use "||" rather than "|",
so that clang understands there is no undefined pointer dereference.

src/cp.c

index 980c0589d78371aefa82102262ff080ab627073d..b2a7269065b3b6bf526601650fa4315d37801f9b 100644 (file)
--- 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. */