* According to Samba4, SEC_FILE_READ_ATTRIBUTE is always granted,
* but we don't have to store this - just ignore it on access check.
*/
- if (conn->sconn->using_smb2) {
+ if (conn_using_smb2(conn->sconn)) {
/*
* SMB2 doesn't return it (according to Microsoft tests).
* Test Case: TestSuite_ScenarioNo009GrantedAccessTestS0
goto fail;
}
- if (conn->sconn->using_smb2 &&
+ if (conn_using_smb2(conn->sconn) &&
(access_mask == SEC_FLAG_SYSTEM_SECURITY))
{
/*