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:
parent
c2e012fe11
commit
a1856f07b3
@ -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 ... */
|
||||
|
Loading…
x
Reference in New Issue
Block a user