1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-24 13:57:43 +03:00

libsmb: Use posix open in SMBC_open_ctx

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2020-02-28 11:18:00 +01:00 committed by Jeremy Allison
parent c2e012fe11
commit a1856f07b3

View File

@ -125,8 +125,21 @@ SMBC_open_ctx(SMBCCTX *context,
}
/*d_printf(">>>open: resolved %s as %s\n", path, targetpath);*/
status = cli_open(targetcli, targetpath, flags,
context->internal->share_mode, &fd);
if (srv->try_posixinfo) {
status = cli_posix_open(
targetcli,
targetpath,
flags,
mode,
&fd);
} else {
status = cli_open(
targetcli,
targetpath,
flags,
context->internal->share_mode,
&fd);
}
if (!NT_STATUS_IS_OK(status)) {
/* Handle the error ... */