summaryrefslogtreecommitdiff
path: root/source3/libsmb/clifile.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2019-03-04 20:40:14 +0100
committerJeremy Allison <jra@samba.org>2019-03-08 18:20:10 +0000
commit9a38dc0c1f776ef21599f212dd5659676bf9c9fc (patch)
tree845afb7ee24e8e430c509cc9d664596803ea2b1d /source3/libsmb/clifile.c
parent7fc3b2b2642425cf9f55b4409cfb108a5a87e69e (diff)
downloadsamba-9a38dc0c1f776ef21599f212dd5659676bf9c9fc.tar.gz
libsmb: Add "in_cblobs" to cli_smb2_unlink
This reveals the fact that unlink is an open/close in smb2 through the API. This is not nice, but it's an internal API with currently only one user. And it enables posix semantics for the open easily. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/libsmb/clifile.c')
-rw-r--r--source3/libsmb/clifile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c
index 695ab5e5d84..501b7d9b4ef 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -1528,7 +1528,7 @@ NTSTATUS cli_unlink(struct cli_state *cli, const char *fname, uint16_t mayhave_a
NTSTATUS status = NT_STATUS_OK;
if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) {
- return cli_smb2_unlink(cli, fname);
+ return cli_smb2_unlink(cli, fname, NULL);
}
frame = talloc_stackframe();