mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
smbd: remove unused set_current_service()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
4a97448cc9
commit
ff7efafe73
@ -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);
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user