summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2020-01-27 16:35:25 -0800
committerRalph Boehme <slow@samba.org>2020-02-18 21:08:32 +0000
commit012b812188f636d9b8cf0edee34df5d43d2ac0a8 (patch)
tree063cfd8fa0e547c2235681107c1f9468ad78091d
parent028c33e09ab52b55f33f83e26a12498f57918334 (diff)
downloadsamba-012b812188f636d9b8cf0edee34df5d43d2ac0a8.tar.gz
s3: smbd: dfs: Make parse_msdfs_symlink() external.
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>
-rw-r--r--source3/smbd/msdfs.c10
-rw-r--r--source3/smbd/proto.h5
2 files changed, 10 insertions, 5 deletions
diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c
index 8a682aad499..0ba9810d097 100644
--- a/source3/smbd/msdfs.c
+++ b/source3/smbd/msdfs.c
@@ -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;
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index 02a8c9873c3..199f8544e01 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -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;