1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-24 13:57:43 +03:00

smbd: list reparse tag in QUERY_DIRECTORY

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jun  4 17:39:21 UTC 2024 on atb-devel-224
This commit is contained in:
Volker Lendecke 2023-01-02 16:35:16 +01:00 committed by Jeremy Allison
parent 1dba6d3cfc
commit c005de07ae
2 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,2 @@
^samba.tests.reparsepoints.samba.tests.reparsepoints.ReparsePoints.test_create_reparse_directory
^samba.tests.reparsepoints.samba.tests.reparsepoints.ReparsePoints.test_create_reparse_nonempty_directory
^samba.tests.reparsepoints.samba.tests.reparsepoints.ReparsePoints.test_query_dir_reparse

View File

@ -1064,11 +1064,15 @@ static bool smbd_dirptr_lanman2_match_fn(TALLOC_CTX *ctx,
static uint32_t get_dirent_ea_size(uint32_t mode, files_struct *fsp)
{
if (!(mode & FILE_ATTRIBUTE_REPARSE_POINT)) {
unsigned ea_size = estimate_ea_size(fsp);
return ea_size;
uint32_t ea_size = IO_REPARSE_TAG_DFS;
if (mode & FILE_ATTRIBUTE_REPARSE_POINT) {
(void)fsctl_get_reparse_tag(fsp, &ea_size);
} else {
ea_size = estimate_ea_size(fsp);
}
return IO_REPARSE_TAG_DFS;
return ea_size;
}
static NTSTATUS smbd_marshall_dir_entry(TALLOC_CTX *ctx,