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
#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"
/* ====================================================================== */
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
#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
#include "smbprofile.h"
#include "source3/lib/substitute.h"
-extern userdom_struct current_user_info;
-
struct msg_state {
char *from;
char *to;
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;