1
0
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:
Jim Meyering
2010-01-04 16:46:44 +01:00
parent 0faf3bf874
commit dc0f5eb6a0

View File

@@ -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. */