From: Ralph Boehme Date: Sun, 29 Oct 2023 14:31:33 +0000 (+0100) Subject: libsmb: add all fields from SMB2_FIND_POSIX_INFORMATION in list_posix_helper() X-Git-Tag: talloc-2.4.2~961 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6301fd0d75575fd8c19a24c37b2f353dc871fd5;p=thirdparty%2Fsamba.git libsmb: add all fields from SMB2_FIND_POSIX_INFORMATION in list_posix_helper() Signed-off-by: Ralph Boehme Reviewed-by: David Mulder --- diff --git a/source3/libsmb/pylibsmb.c b/source3/libsmb/pylibsmb.c index fd8232d2e11..3129a45374a 100644 --- a/source3/libsmb/pylibsmb.c +++ b/source3/libsmb/pylibsmb.c @@ -1891,15 +1891,32 @@ static NTSTATUS list_posix_helper(struct file_info *finfo, /* * Build a dictionary representing the file info. */ - file = Py_BuildValue("{s:s,s:I,s:K,s:l,s:i,s:i,s:i,s:s,s:s}", + file = Py_BuildValue("{s:s,s:I," + "s:K,s:K," + "s:l,s:l,s:l,s:l," + "s:i,s:K,s:i,s:i,s:I," + "s:s,s:s}", "name", finfo->name, "attrib", finfo->attr, + "size", finfo->size, + "allocaction_size", finfo->allocated_size, + + "btime", + convert_timespec_to_time_t(finfo->btime_ts), + "atime", + convert_timespec_to_time_t(finfo->atime_ts), "mtime", convert_timespec_to_time_t(finfo->mtime_ts), + "ctime", + convert_timespec_to_time_t(finfo->ctime_ts), + "perms", finfo->st_ex_mode, "ino", finfo->ino, "dev", finfo->st_ex_dev, + "nlink", finfo->st_ex_nlink, + "reparse_tag", finfo->reparse_tag, + "owner_sid", dom_sid_string(finfo, &finfo->owner_sid), "group_sid",