We already store the negotiated POSIX state in smbXcli_connection
and there we only store it if the server actually supports the
version we requested.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
char *caps;
NTSTATUS status;
- if (!(SERVER_HAS_UNIX_CIFS(cli) || cli->smb2.server_smb311_posix)) {
+ if (!smbXcli_conn_have_posix(cli->conn)) {
d_printf("Server doesn't support UNIX CIFS extensions.\n");
return 1;
}
struct smbXcli_session *session;
struct smbXcli_tcon *tcon;
struct idr_context *open_handles;
- bool server_smb311_posix;
bool client_smb311_posix;
} smb2;
};
smb2cli_conn_set_max_credits(c->conn, DEFAULT_SMB2_MAX_CREDITS);
}
- if ((protocol >= PROTOCOL_SMB3_11) && (out_contexts != NULL)) {
- c->smb2.server_smb311_posix = smb2_negotiate_context_find(
- out_contexts,
- SMB2_POSIX_EXTENSIONS_AVAILABLE);
- }
-
status = cli_session_setup_creds(c, creds);
if (!NT_STATUS_IS_OK(status)) {
/* If a password was not supplied then