Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
}
/*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 ... */