From: Ralph Boehme Date: Thu, 19 Mar 2020 10:19:34 +0000 (+0100) Subject: smbd: make canonicalize_connect_path() public X-Git-Tag: ldb-2.2.0~1249 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67b9b52bb66051d7ae32a4355b6ed61202ddcb7f;p=thirdparty%2Fsamba.git smbd: make canonicalize_connect_path() public Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 24d43e455bf..9f77c956e13 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -1081,6 +1081,7 @@ void smbd_exit_server_cleanly(const char *const reason) _NORETURN_; /* The following definitions come from smbd/service.c */ bool set_conn_connectpath(connection_struct *conn, const char *connectpath); +bool canonicalize_connect_path(connection_struct *conn); NTSTATUS set_conn_force_user_group(connection_struct *conn, int snum); void set_current_case_sensitive(connection_struct *conn, uint16_t flags); bool chdir_current_service(connection_struct *conn); diff --git a/source3/smbd/service.c b/source3/smbd/service.c index 03125a30dad..4de36bf6ff9 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -34,7 +34,7 @@ #include "lib/afs/afs_funcs.h" #include "lib/util_path.h" -static bool canonicalize_connect_path(connection_struct *conn) +bool canonicalize_connect_path(connection_struct *conn) { bool ret; struct smb_filename con_fname = { .base_name = conn->connectpath };