From f3404f3e4acb004281f1609a0088c1eb16e6ba94 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 19 Aug 2003 15:18:27 +0000 Subject: - Update 'preload modules' documention (bug #304) - Fix WINS Server List in SWAT (bug #197) - Don't segfault SWAT when adding shares (bug #254) (This used to be commit dd43a29504fe2b6f9d13cdb9431347927548fc10) --- source3/param/loadparm.c | 3 +-- source3/web/swat.c | 11 ++++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 7982b87ffc..4a2fffc757 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -4163,12 +4163,11 @@ void lp_remove_service(int snum) void lp_copy_service(int snum, const char *new_name) { - char *oldname = lp_servicename(snum); do_section(new_name); if (snum >= 0) { snum = lp_servicenumber(new_name); if (snum >= 0) - lp_do_parameter(snum, "copy", oldname); + lp_do_parameter(snum, "copy", lp_servicename(snum)); } } diff --git a/source3/web/swat.c b/source3/web/swat.c index a1c132a088..1c892559dd 100644 --- a/source3/web/swat.c +++ b/source3/web/swat.c @@ -737,7 +737,16 @@ static void wizard_page(void) d_printf(" Not Used ", (winstype == 0) ? "checked" : ""); d_printf(" Server for client use ", (winstype == 1) ? "checked" : ""); d_printf(" Client of another WINS server ", (winstype == 2) ? "checked" : ""); - d_printf("Remote WINS Server ",lp_wins_server_list()); + d_printf("Remote WINS Server "); if (winstype == 3) { d_printf("Error: WINS Server Mode and WINS Support both set in smb.conf"); d_printf("Please Select desired WINS mode above."); -- cgit