[PATCH] samba HEAD testparm.c

Richard Sharpe rsharpe at ns.aus.com
Tue Sep 3 07:31:01 GMT 2002


On Tue, 3 Sep 2002, Eddie Lania wrote:

> Hello,
> 
> This is the first time I submit a patch to this list, I hope I have done
> things the right way.
> 
> This wil solve testparm complaining: "ERROR: both 'wins support = true' and
> 'wins server = <server>' cannot be set in the smb.conf file. nmbd will abort
> with this setting." while the parameter 'wins server=' is not used in
> smb.conf.
> 
> If it is a usefull change, I hope it will be added to the code.

See below for a much more interesting patch ...
 
> Thank you.
> 
> Greetings,
> 
> Eddie.
> 
> ### START OF PATCH ###
> 
> diff -urp /usr/local/src/samba/source/utils/testparm.c
> /home/eddie/patches/testparm.c
> --- /usr/local/src/samba/source/utils/testparm.c        Sat Aug 31 17:59:33
> 2002
> +++ /home/eddie/patches/testparm.c      Tue Sep  3 08:48:35 2002
> @@ -52,7 +52,7 @@ static int do_global_checks(void)
>                 ret = 1;
>         }
> 
> -       if (lp_wins_support() && wins_srv_count()) {
> +       if (lp_wins_support() && lp_wins_server_list()) {
>                 printf("ERROR: both 'wins support = true' and 'wins 
server =
> -<server>' \
> +%s' \ 
> -cannot be set in the smb.conf file. nmbd will abort with this 
setting.\n");
> +cannot be set in the smb.conf file. nmbd will abort with this 
setting.\n", lp_wins_server_list());
>                 ret = 1;
> 
> ### END OF PATCH ###
> 
> 

-- 
Regards
-----
Richard Sharpe, rsharpe at ns.aus.com, rsharpe at samba.org, 
sharpe at ethereal.com




More information about the samba-technical mailing list