1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

posix_ext: Pass unix file type through posix query_directory

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke 2024-09-24 09:50:57 +02:00 committed by Ralph Boehme
parent 83794d08bc
commit 342d45eddb
3 changed files with 2 additions and 3 deletions

View File

@ -1 +0,0 @@
samba.tests.smb3unix.samba.tests.smb3unix.Smb3UnixTests.test_posix_perm_files

View File

@ -1266,7 +1266,7 @@ static NTSTATUS parse_finfo_posix_info(const uint8_t *dir_data,
finfo->st_ex_dev = info.device;
finfo->st_ex_nlink = info.cc.nlinks;
finfo->reparse_tag = info.cc.reparse_tag;
finfo->st_ex_mode = wire_perms_to_unix(info.cc.posix_mode);
finfo->st_ex_mode = wire_mode_to_unix(info.cc.posix_mode);
sid_copy(&finfo->owner_sid, &info.cc.owner);
sid_copy(&finfo->group_sid, &info.cc.group);

View File

@ -42,7 +42,7 @@ void smb3_file_posix_information_init(
.change_time = unix_timespec_to_nt_time(st->st_ex_ctime),
.cc.nlinks = st->st_ex_nlink,
.cc.reparse_tag = reparse_tag,
.cc.posix_mode = unix_perms_to_wire(st->st_ex_mode & ~S_IFMT),
.cc.posix_mode = unix_mode_to_wire(st->st_ex_mode),
.cc.owner = global_sid_NULL,
.cc.group = global_sid_NULL,
};