mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
load smb.conf and interfaces in masktest (to allow for netbios name
resolution)
(This used to be commit f007531742
)
This commit is contained in:
parent
614929752e
commit
da2da10117
@ -394,6 +394,7 @@ static void usage(void)
|
||||
int opt;
|
||||
char *p;
|
||||
int seed;
|
||||
static pstring servicesf = CONFIGFILE;
|
||||
|
||||
setlinebuf(stdout);
|
||||
|
||||
@ -418,6 +419,9 @@ static void usage(void)
|
||||
TimeInit();
|
||||
charset_initialise();
|
||||
|
||||
lp_load(servicesf,True,False,False);
|
||||
load_interfaces();
|
||||
|
||||
if (getenv("USER")) {
|
||||
pstrcpy(username,getenv("USER"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user