aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs
diff options
context:
space:
mode:
authorTobin Harding <[email protected]>2017-10-06 13:38:55 +1100
committerBrian Behlendorf <[email protected]>2017-10-05 19:38:55 -0700
commita0430cc5a913406cf471bcafac31c5118d89843f (patch)
tree9fe280c288a59320b21e87d83895bf109933d1d7 /module/zfs
parentd95a59805f8f00046bb449fb12161e1f0caf65fb (diff)
Use bitwise '&' instead of logical '&&'
Make two instances of the same change. Change bitwise AND (&) to logical AND (&&). Currently the code uses a bitwise AND between two boolean values. In the first instance; The first operand is a flag that has been bitwise combined with a bit mask to get a boolean value as to whether a file has group write permissions set. The second operand used is a struct member that is intended as a boolean flag not a bit mask. In the second instance the argument is the same except with world write permissions instead of group write (S_IWOTH, S_IWGRP). Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: George Melikov <[email protected]> Reviewed-by: Chris Dunlop <[email protected]> Signed-off-by: Tobin C. Harding <[email protected]> Closes #6684 Closes #6722
Diffstat (limited to 'module/zfs')
0 files changed, 0 insertions, 0 deletions