s3/swat: Fix creation of the first share using SWAT.
authorVolker Lendecke <vl@samba.org>
Tue, 6 Jan 2009 14:13:43 +0000 (15:13 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 28 Jan 2009 08:39:57 +0000 (09:39 +0100)
This fixes bug #5965.
(cherry picked from commit f76614169f1e0a932cf2895702cfa9e8a5735875)
(cherry picked from commit 148437fcd0896591ebbf6c2808723575d025123f)

source/web/swat.c

index 47c40cbd0e2563e1d618e5bfe296f5083a9079a1..39efc790edb782cc7217c668e931a1987d55f202 100644 (file)
@@ -474,7 +474,7 @@ static int save_reload(int snum)
        }
 
        write_config(f, False);
-       if (snum)
+       if (snum >= 0)
                lp_dump_one(f, False, snum);
        fclose(f);