The "access_bits" clause is redundant. is_stat_open says that exactly
at least one of the stat_open_bits must be set and none else.
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Tue Sep 25 20:05:06 CEST 2012 on sn-devel-104
FILE_READ_ATTRIBUTES|
FILE_WRITE_ATTRIBUTES);
- return (access_mask &&
- ((access_mask & ~stat_open_bits) == 0) &&
- ((access_mask & stat_open_bits) != 0));
+ return (((access_mask & stat_open_bits) != 0) &&
+ ((access_mask & ~stat_open_bits) == 0));
}
/****************************************************************************