summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-29 23:31:45 +0100
committerVolker Lendecke <vl@samba.org>2009-11-30 10:43:23 +0100
commitb4bce76776714815874f78dbe1184072d3943741 (patch)
tree7a1af5296b551bb7ed7e905fdf20739533d83a6f
parent1cf48022afab79e1fc462b18032d0e497ed15ecf (diff)
downloadsamba-b4bce76776714815874f78dbe1184072d3943741.tar.gz
samba-b4bce76776714815874f78dbe1184072d3943741.tar.bz2
samba-b4bce76776714815874f78dbe1184072d3943741.zip
s3: Fix bug 6288
-rw-r--r--source3/web/swat.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/web/swat.c b/source3/web/swat.c
index 8db175c86e..5e4b950135 100644
--- a/source3/web/swat.c
+++ b/source3/web/swat.c
@@ -645,7 +645,7 @@ static void wizard_params_page(void)
if (cgi_variable("Commit")) {
commit_parameters(GLOBAL_SECTION_SNUM);
- save_reload(0);
+ save_reload(-1);
}
printf("<form name=\"swatform\" method=post action=wizard_params>\n");
@@ -669,7 +669,7 @@ static void wizard_params_page(void)
static void rewritecfg_file(void)
{
commit_parameters(GLOBAL_SECTION_SNUM);
- save_reload(0);
+ save_reload(-1);
printf("<H2>%s</H2>\n", _("Note: smb.conf file has been read and rewritten"));
}
@@ -757,7 +757,7 @@ static void wizard_page(void)
}
commit_parameters(GLOBAL_SECTION_SNUM);
- save_reload(0);
+ save_reload(-1);
}
else
{
@@ -851,7 +851,7 @@ static void globals_page(void)
if (cgi_variable("Commit")) {
commit_parameters(GLOBAL_SECTION_SNUM);
- save_reload(0);
+ save_reload(-1);
}
if ( cgi_variable("ViewMode") )
@@ -909,13 +909,13 @@ static void shares_page(void)
if (cgi_variable("Commit") && snum >= 0) {
commit_parameters(snum);
- save_reload(0);
+ save_reload(-1);
snum = lp_servicenumber(share);
}
if (cgi_variable("Delete") && snum >= 0) {
lp_remove_service(snum);
- save_reload(0);
+ save_reload(-1);
share = NULL;
snum = -1;
}
@@ -1264,13 +1264,13 @@ static void printers_page(void)
if (snum >= iNumNonAutoPrintServices)
save_reload(snum);
else
- save_reload(0);
+ save_reload(-1);
snum = lp_servicenumber(share);
}
if (cgi_variable("Delete") && snum >= 0) {
lp_remove_service(snum);
- save_reload(0);
+ save_reload(-1);
share = NULL;
snum = -1;
}