This will require a SMB1 client to enable SMB1 POSIX extensions, just sending
POSIX info-level requests without first enabling them won't cut it.
As discussed with Jeremy, SMB1 POSIX extensions is a global thing and the client
that wants to use it is expected to enable them explicitly before making use of
POSIX info-levels.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
break;
case SMB_FIND_FILE_UNIX:
case SMB_FIND_FILE_UNIX_INFO2:
- /* Always use filesystem for UNIX mtime query. */
- ask_sharemode = false;
if (!lp_unix_extensions()) {
reply_nterror(req, NT_STATUS_INVALID_LEVEL);
goto out;
}
- ucf_flags |= UCF_UNIX_NAME_LOOKUP;
break;
default:
reply_nterror(req, NT_STATUS_INVALID_LEVEL);
goto out;
}
+ if (req->posix_pathnames) {
+ /* Always use filesystem for UNIX mtime query. */
+ ask_sharemode = false;
+ ucf_flags |= UCF_UNIX_NAME_LOOKUP;
+ }
+
if (req->posix_pathnames) {
srvstr_get_path_posix(talloc_tos(),
params,