]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: libsmb: Add missing ino field to internal struct smbc_dirplus_list.
authorJeremy Allison <jra@samba.org>
Fri, 18 Oct 2019 16:45:33 +0000 (09:45 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 30 Oct 2019 20:44:31 +0000 (20:44 +0000)
This should have been added to struct libsmb_file_info, but
this is user-visible so I don't want to change this now. Adding
it to the containing struct allows us to synthesise a struct stat
to return from smbc_readdirplus2() to return all the info from
the server to callers.

Signed-off-by: Puran Chand <pchand@vmware.com>
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/include/libsmb_internal.h
source3/libsmb/libsmb_dir.c

index c1bcab18138289e6fad356f9cefb87c3f172675f..93b8336f067299235f87af3538890ecc1cf059ea 100644 (file)
@@ -97,6 +97,7 @@ struct smbc_dir_list {
 struct smbc_dirplus_list {
        struct smbc_dirplus_list *next;
        struct libsmb_file_info *smb_finfo;
+       uint64_t ino;
 };
 
 /*
index ab20a127c49b08e24ce06f523deacc54d18908c7..b6523435c50caaeb4c9c9f4753ad840e49d68f4b 100644 (file)
@@ -170,6 +170,7 @@ static int add_dirplus(SMBCFILE *dir, struct file_info *finfo)
                return -1;
        }
        ZERO_STRUCTP(new_entry);
+       new_entry->ino = finfo->ino;
 
        info = SMB_MALLOC_P(struct libsmb_file_info);
        if (info == NULL) {