From: Stefan Metzmacher Date: Thu, 14 Jun 2018 09:22:31 +0000 (+0200) Subject: smbd: remove unused set_current_service() X-Git-Tag: tevent-0.9.37~301 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff7efafe73369ec27ab07307102807818ea48c39;p=thirdparty%2Fsamba.git smbd: remove unused set_current_service() Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index a6b8a05cb4c..0c4c68187c2 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -1063,7 +1063,6 @@ bool set_conn_connectpath(connection_struct *conn, const char *connectpath); 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); -bool set_current_service(connection_struct *conn, uint16_t flags, bool do_chdir); void load_registry_shares(void); int add_home_service(const char *service, const char *username, const char *homedir); int find_service(TALLOC_CTX *ctx, const char *service, char **p_service_out); diff --git a/source3/smbd/service.c b/source3/smbd/service.c index 612c88357ef..a22a0270cd7 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -168,26 +168,6 @@ bool chdir_current_service(connection_struct *conn) return true; } -bool set_current_service(connection_struct *conn, uint16_t flags, bool do_chdir) -{ - bool ok; - - if (conn == NULL) { - return false; - } - - set_current_case_sensitive(conn, flags); - - if (do_chdir) { - ok = chdir_current_service(conn); - if (!ok) { - return false; - } - } - - return true; -} - /**************************************************************************** do some basic sainity checks on the share. This function modifies dev, ecode.