diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-03-26 09:20:47 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-03-26 09:20:47 +0000 |
commit | da2da101177cf0b5d6cf48515ec43cb2bf4af28e (patch) | |
tree | af6d0ac7191ca3efa0424d7b1c1353a83f3e21f3 /source3/utils/masktest.c | |
parent | 614929752ecfc7a2f621bc868406d3d77b63895d (diff) | |
download | samba-da2da101177cf0b5d6cf48515ec43cb2bf4af28e.tar.gz samba-da2da101177cf0b5d6cf48515ec43cb2bf4af28e.tar.bz2 samba-da2da101177cf0b5d6cf48515ec43cb2bf4af28e.zip |
load smb.conf and interfaces in masktest (to allow for netbios name
resolution)
(This used to be commit f007531742f5570d5b9b8cb20cab19cd1ab1bfed)
Diffstat (limited to 'source3/utils/masktest.c')
-rw-r--r-- | source3/utils/masktest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/utils/masktest.c b/source3/utils/masktest.c index a1fe6d2186..f7b6ad1b1b 100644 --- a/source3/utils/masktest.c +++ b/source3/utils/masktest.c @@ -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")); } |