diff --git a/source3/libsmb/libsmb_file.c b/source3/libsmb/libsmb_file.c index a1ae4584d15..512827e134d 100644 --- a/source3/libsmb/libsmb_file.c +++ b/source3/libsmb/libsmb_file.c @@ -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 ... */