1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

smbd: Remove a few "extern userdom_struct current_user_info"

get_current_username() returns current_user_info.smb_name

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Dec 12 22:14:20 UTC 2022 on sn-devel-184
This commit is contained in:
Volker Lendecke 2022-11-30 18:47:21 +01:00 committed by Jeremy Allison
parent 8cc0489c80
commit 5d82af05f3
4 changed files with 1 additions and 10 deletions

View File

@ -39,9 +39,6 @@
#define DBGC_CLASS virusfilter_debug_class
extern int virusfilter_debug_class;
/* Samba's global variable */
extern userdom_struct current_user_info;
#define VIRUSFILTER_VERSION "0.1.5"
/* ====================================================================== */

View File

@ -85,8 +85,6 @@
bool bLoaded = false;
extern userdom_struct current_user_info;
/* the special value for the include parameter
* to be interpreted not as a file name but to
* trigger loading of the global smb.conf options

View File

@ -52,8 +52,6 @@
#include "lib/util/util_str_escape.h"
#include "source3/lib/substitute.h"
extern userdom_struct current_user_info;
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_SRV

View File

@ -29,8 +29,6 @@
#include "smbprofile.h"
#include "source3/lib/substitute.h"
extern userdom_struct current_user_info;
struct msg_state {
char *from;
char *to;
@ -122,7 +120,7 @@ static void msg_deliver(struct msg_state *state)
goto done;
}
s = talloc_sub_basic(talloc_tos(), current_user_info.smb_name,
s = talloc_sub_basic(talloc_tos(), get_current_username(),
get_current_user_info_domain(), s);
if (s == NULL) {
goto done;