]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Add dptr_fetch_lanman2_fsp() - to replace dptr_fetch_lanman2().
authorJeremy Allison <jra@samba.org>
Wed, 17 Jul 2019 20:20:08 +0000 (13:20 -0700)
committerRalph Boehme <slow@samba.org>
Tue, 6 Aug 2019 14:23:35 +0000 (14:23 +0000)
Not yet used.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/dir.c
source3/smbd/proto.h

index 478ba5a98351d91dad68e957071015752a0dfaf9..d6512b876638c3c73ea0824949202fdfe94f3180 100644 (file)
@@ -837,6 +837,21 @@ struct dptr_struct *dptr_fetch_lanman2(struct smbd_server_connection *sconn,
        return(dptr);
 }
 
+/****************************************************************************
+ Fetch the fsp associated with the dptr_num.
+****************************************************************************/
+
+files_struct *dptr_fetch_lanman2_fsp(struct smbd_server_connection *sconn,
+                                      int dptr_num)
+{
+       struct dptr_struct *dptr = dptr_fetch_lanman2(sconn, dptr_num);
+
+       if (dptr == NULL) {
+               return NULL;
+       }
+       return dptr->dir_hnd->fsp;
+}
+
 static bool mangle_mask_match(connection_struct *conn,
                const char *filename,
                const char *mask)
index 9b087fa6c9463e2b4d81ea2a9c504e04c65cfe3d..d371ba9e4dcfa7af4aab174a1b057c731fecbfc3 100644 (file)
@@ -211,6 +211,8 @@ files_struct *dptr_fetch_fsp(struct smbd_server_connection *sconn,
                               char *buf,int *num);
 struct dptr_struct *dptr_fetch_lanman2(struct smbd_server_connection *sconn,
                                       int dptr_num);
+files_struct *dptr_fetch_lanman2_fsp(struct smbd_server_connection *sconn,
+                                      int dptr_num);
 bool get_dir_entry(TALLOC_CTX *ctx,
                struct dptr_struct *dirptr,
                const char *mask,