From: Volker Lendecke Date: Tue, 6 Jan 2009 14:13:43 +0000 (+0100) Subject: s3/swat: Fix creation of the first share using SWAT. X-Git-Tag: samba-3.0.34~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c44392257e5033aa74a4ecb453654dee2d0ebc28;p=thirdparty%2Fsamba.git s3/swat: Fix creation of the first share using SWAT. This fixes bug #5965. (cherry picked from commit f76614169f1e0a932cf2895702cfa9e8a5735875) (cherry picked from commit 148437fcd0896591ebbf6c2808723575d025123f) (cherry picked from commit 3ee41667d7bb8358c80af24f78dbdd071fa9c765) --- diff --git a/source/web/swat.c b/source/web/swat.c index d43f8941bc1..1994f382f39 100644 --- a/source/web/swat.c +++ b/source/web/swat.c @@ -463,7 +463,7 @@ static int save_reload(int snum) } write_config(f, False); - if (snum) + if (snum >= 0) lp_dump_one(f, False, snum); fclose(f);