summaryrefslogtreecommitdiffstats
path: root/source/nmbd/nmbd.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-01-16 17:41:40 +0000
committerLuke Leighton <lkcl@samba.org>2000-01-16 17:41:40 +0000
commit19dca64bb21f4a9a14a0e9465da1c9ddde199956 (patch)
tree86acb95d4934bd2babf0ecc5233a5864360d38c9 /source/nmbd/nmbd.c
parent0d73371384287b1ad0e17e9a05393ed5c954b20c (diff)
downloadsamba-19dca64bb21f4a9a14a0e9465da1c9ddde199956.tar.gz
samba-19dca64bb21f4a9a14a0e9465da1c9ddde199956.tar.xz
samba-19dca64bb21f4a9a14a0e9465da1c9ddde199956.zip
rpcclient wasn't asking for a password if you didn't supply one.
nmbd reload_services() renamed to a static reload_nmbd_services() stopped clientgen.c filling in the domain name in usr_creds, this is "unexpected" behaviour that stops cli_net_use_del() from being able to unlink the SMB connection!
Diffstat (limited to 'source/nmbd/nmbd.c')
-rw-r--r--source/nmbd/nmbd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/nmbd/nmbd.c b/source/nmbd/nmbd.c
index b1f3d77150d..270a327ed92 100644
--- a/source/nmbd/nmbd.c
+++ b/source/nmbd/nmbd.c
@@ -61,7 +61,7 @@ extern struct in_addr ipzero;
/**************************************************************************** **
reload the services file
**************************************************************************** */
-static BOOL reload_services(BOOL test)
+static BOOL reload_nmbd_services(BOOL test)
{
BOOL ret;
extern fstring remote_machine;
@@ -88,7 +88,7 @@ static BOOL reload_services(BOOL test)
if ( !test )
{
DEBUG( 3, ( "services not loaded\n" ) );
- reload_services( True );
+ reload_nmbd_services( True );
}
/* Do a sanity check for a misconfigured nmbd */
@@ -100,7 +100,7 @@ cannot be set in the smb.conf file. nmbd aborting.\n"));
}
return(ret);
-} /* reload_services */
+} /* reload_nmbd_services */
/**************************************************************************** **
catch a sigterm
@@ -139,7 +139,7 @@ static void sig_hup(int sig)
write_browse_list( 0, True );
dump_all_namelists();
- reload_services( True );
+ reload_nmbd_services( True );
set_samba_nb_type();
@@ -667,7 +667,7 @@ static void usage(char *pname)
return -1;
}
- if ( !reload_services(False) )
+ if ( !reload_nmbd_services(False) )
return(-1);
codepage_initialise(lp_client_code_page());
@@ -675,7 +675,7 @@ static void usage(char *pname)
if(!init_structs())
return -1;
- reload_services( True );
+ reload_nmbd_services( True );
if (!init_myworkgroup())
{