Signed-off-by: Luk Claes <luk@debian.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
goto fail;
}
- info_level = (smb1cli_conn_capabilities(cli->conn) & CAP_NT_SMBS)
+ info_level = smbXcli_conn_nt_smbs_supported(cli->conn)
? SMB_FIND_FILE_BOTH_DIRECTORY_INFO : SMB_FIND_INFO_STANDARD;
req = cli_list_send(frame, ev, cli, mask, attribute, info_level);
}
/* if this is NT then don't bother with the getatr */
- if (smb1cli_conn_capabilities(targetcli->conn) & CAP_NT_SMBS) {
+ if (smbXcli_conn_nt_smbs_supported(targetcli->conn)) {
errno = EPERM;
TALLOC_FREE(frame);
return False;