libsmb: add all fields from SMB2_FIND_POSIX_INFORMATION in list_posix_helper()
authorRalph Boehme <slow@samba.org>
Sun, 29 Oct 2023 14:31:33 +0000 (15:31 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 31 Oct 2023 04:38:42 +0000 (04:38 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: David Mulder <dmulder@samba.org>
source3/libsmb/pylibsmb.c

index fd8232d2e11fffea0782c8bc3591b83813f38e0d..3129a45374a38efaddaf404d317573fccdb5ce32 100644 (file)
@@ -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",