]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: pass session_info to junction_to_local_path_tos()
authorRalph Boehme <slow@samba.org>
Fri, 13 Dec 2019 15:27:51 +0000 (16:27 +0100)
committerRalph Boehme <slow@samba.org>
Fri, 20 Dec 2019 11:41:40 +0000 (11:41 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/msdfs.c

index 5d2c1dc59b92dffc9c37b2c8d7869aaac8cffecc..4f01d8202dba73fe5158810ea75903c3c585f19f 100644 (file)
@@ -1322,6 +1322,7 @@ bool create_junction(TALLOC_CTX *ctx,
  **********************************************************************/
 
 static bool junction_to_local_path_tos(const struct junction_map *jucn,
+                                      struct auth_session_info *session_info,
                                       char **pp_path_out,
                                       connection_struct **conn_out)
 {
@@ -1435,7 +1436,7 @@ bool create_msdfs_link(const struct junction_map *jucn,
        bool ok;
        int retval;
 
-       ok = junction_to_local_path_tos(jucn, &path, &conn);
+       ok = junction_to_local_path_tos(jucn, session_info, &path, &conn);
        if (!ok) {
                TALLOC_FREE(frame);
                return False;
@@ -1507,7 +1508,7 @@ bool remove_msdfs_link(const struct junction_map *jucn,
        bool ok;
        int retval;
 
-       ok = junction_to_local_path_tos(jucn, &path, &conn);
+       ok = junction_to_local_path_tos(jucn, session_info, &path, &conn);
        if (!ok) {
                TALLOC_FREE(frame);
                return false;