mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
smbd: Centralize fdos_mode() in smbd_dirptr_get_entry()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
80c98acbf0
commit
aaa73cce1d
@ -626,11 +626,6 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx,
|
||||
}
|
||||
|
||||
if (!S_ISLNK(smb_fname->st.st_ex_mode)) {
|
||||
if (get_dosmode) {
|
||||
mode = fdos_mode(smb_fname->fsp);
|
||||
smb_fname->st = smb_fname->fsp->fsp_name->st;
|
||||
}
|
||||
|
||||
goto done;
|
||||
}
|
||||
|
||||
@ -699,13 +694,12 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx,
|
||||
continue;
|
||||
}
|
||||
|
||||
done:
|
||||
if (get_dosmode) {
|
||||
mode = fdos_mode(smb_fname->fsp);
|
||||
smb_fname->st = smb_fname->fsp->fsp_name->st;
|
||||
}
|
||||
|
||||
done:
|
||||
|
||||
if (!dir_check_ftype(mode, dirtype)) {
|
||||
DBG_INFO("[%s] attribs 0x%" PRIx32 " didn't match "
|
||||
"0x%" PRIx32 "\n",
|
||||
|
Loading…
Reference in New Issue
Block a user