]> git.ipfire.org Git - thirdparty/samba.git/commit
smbXcli: Detect the SMB311 posix negotiate context
authorVolker Lendecke <vl@samba.org>
Thu, 25 Aug 2022 13:16:10 +0000 (15:16 +0200)
committerRalph Boehme <slow@samba.org>
Fri, 2 Sep 2022 13:31:38 +0000 (13:31 +0000)
commitae5dc52d23627e285214c92798f8412f265e9852
tree557008fd2977ade9d6edeea223b83c93b7542d28
parentd7e928794e4aebe1ca6c28773cfea97bbb6eb99e
smbXcli: Detect the SMB311 posix negotiate context

The server will only return this if the client requested in via
smbXcli_negprot_send()'s in_ctx parameter. This adds knowledge about
SMB2_CREATE_TAG_POSIX to smbXcli_base.c with a function to query
it. The alternative would have been to detect this in the caller, but
this would have meant that we also would need a
smbXcli_conn_set_have_posix() function or something similar.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
libcli/smb/smbXcli_base.c
libcli/smb/smbXcli_base.h