diff options
author | Tobin Harding <[email protected]> | 2017-10-06 13:38:55 +1100 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2017-10-16 10:57:55 -0700 |
commit | 83d4d1a7847789ab801f04a6132e81c3d2ddc662 (patch) | |
tree | 2f53b3dae79732641ddb757643ea06542c6a5201 /contrib/dracut/90zfs | |
parent | 80cc2f6111d4300d5293f7d95d4b0c77d9df8bd9 (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 'contrib/dracut/90zfs')
0 files changed, 0 insertions, 0 deletions