[PATCH] samba HEAD testparm.c

Eddie Lania e.lania at elton.nl
Tue Sep 3 07:16:01 GMT 2002


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.

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>' \
 cannot be set in the smb.conf file. nmbd will abort with this setting.\n");
                ret = 1;

### END OF PATCH ###





More information about the samba-technical mailing list