diff options
author | Jim Meyering <meyering@redhat.com> | 2009-02-05 14:53:10 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-02-05 14:53:10 +0100 |
commit | 8ed84c34388b3e475ece2f93ac22e25546503f16 (patch) | |
tree | 018dc7c9796f43fe17badf9d0c493e69764a130a /src/copy.c | |
parent | c55c0e736926178d317027fb8c938c266d7b0ea3 (diff) | |
download | coreutils-8ed84c34388b3e475ece2f93ac22e25546503f16.tar.xz |
avoid spurious parentheses/arith-op-related warnings from newer gcc
* src/copy.c (set_owner): Use && rather than &.
* src/stty.c (main): Likewise.
* src/wc.c (wc): Likewise.
Diffstat (limited to 'src/copy.c')
-rw-r--r-- | src/copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/copy.c b/src/copy.c index 85d1fea13..a6ca9dda4 100644 --- a/src/copy.c +++ b/src/copy.c @@ -275,7 +275,7 @@ set_owner (const struct cp_options *x, char const *dst_name, int dest_desc, group. Avoid the window by first changing to a restrictive temporary mode if necessary. */ - if (!new_dst & (x->preserve_mode | x->move_mode | x->set_mode)) + if (!new_dst && (x->preserve_mode | x->move_mode | x->set_mode)) { mode_t old_mode = dst_sb->st_mode; mode_t new_mode = |