mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03: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:
1 parent
0faf3bf874
commit
dc0f5eb6a0
1 file changed
+2
-2
@@ -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