libsmb: Remove file_info->[ug]id
authorVolker Lendecke <vl@samba.org>
Tue, 21 May 2024 09:21:03 +0000 (11:21 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 22 May 2024 04:23:29 +0000 (04:23 +0000)
These fields were never assigned

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/include/client.h
source3/libsmb/libsmb_dir.c

index e1a394af4b537c50df4e48e48e9a312da22a49e9..3bd441279d5770ea6fa9d78e3fe26d5e3ef3f8e5 100644 (file)
@@ -99,8 +99,6 @@ struct file_info {
        uint64_t size;
        uint64_t allocated_size;
        uint32_t attr;
-       uid_t uid;
-       gid_t gid;
        uint64_t ino;
        /* these times are normally kept in GMT */
        struct timespec btime_ts; /* Birth-time if supported by system */
index 34d6731b4219609602f0badb248f08b1f1621333..6e4dd329616a941189e4a502a3af434fcffc97ee 100644 (file)
@@ -186,10 +186,8 @@ static int add_dirplus(SMBCFILE *dir, struct file_info *finfo)
        info->atime_ts = finfo->atime_ts;
        info->ctime_ts = finfo->ctime_ts;
        info->mtime_ts = finfo->mtime_ts;
-       info->gid = finfo->gid;
        info->attrs = finfo->attr;
        info->size = finfo->size;
-       info->uid = finfo->uid;
        info->name = SMB_STRDUP(finfo->name);
        if (info->name == NULL) {
                SAFE_FREE(info);