]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: dfs: Make parse_msdfs_symlink() external.
authorJeremy Allison <jra@samba.org>
Tue, 28 Jan 2020 00:35:25 +0000 (16:35 -0800)
committerRalph Boehme <slow@samba.org>
Tue, 18 Feb 2020 21:08:32 +0000 (21:08 +0000)
So it can be called by a future new VFS call.

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

index 8a682aad4991ca09338f0b134a781d494793fbcd..0ba9810d0974cd1595552b688b1d7971a743f54b 100644 (file)
@@ -523,11 +523,11 @@ static void shuffle_strlist(char **list, int count)
  server we're referring to understands posix paths.
  **********************************************************************/
 
-static bool parse_msdfs_symlink(TALLOC_CTX *ctx,
-                               bool shuffle_referrals,
-                               const char *target,
-                               struct referral **preflist,
-                               size_t *refcount)
+bool parse_msdfs_symlink(TALLOC_CTX *ctx,
+                       bool shuffle_referrals,
+                       const char *target,
+                       struct referral **preflist,
+                       size_t *refcount)
 {
        char *temp = NULL;
        char *prot;
index 02a8c9873c3020fb0e5929370c83b53926cefa01..199f8544e01cb1d77b05e04b8c029982b56c7c2f 100644 (file)
@@ -477,6 +477,11 @@ void reply_sendend(struct smb_request *req);
 
 /* The following definitions come from smbd/msdfs.c  */
 
+bool parse_msdfs_symlink(TALLOC_CTX *ctx,
+                       bool shuffle_referrals,
+                       const char *target,
+                       struct referral **preflist,
+                       size_t *refcount);
 bool is_msdfs_link(connection_struct *conn,
                struct smb_filename *smb_fname);
 struct junction_map;