diff options
Diffstat (limited to 'source3/wsmbstatus.c')
-rw-r--r-- | source3/wsmbstatus.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/wsmbstatus.c b/source3/wsmbstatus.c index fd57662062..60c35357b2 100644 --- a/source3/wsmbstatus.c +++ b/source3/wsmbstatus.c @@ -43,6 +43,12 @@ static void show_connections(void) FILE *f; struct connect_record crec; + if(!get_myname(myhostname,NULL)) + { + printf("Failed to get my hostname.\n"); + return; + } + if (!lp_load(servicesf,False)) { printf("Can't load %s - run testparm to debug it\n", servicesf); return; |