summaryrefslogtreecommitdiff
path: root/source3/web
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-01-06 15:13:43 +0100
committerKarolin Seeger <kseeger@samba.org>2009-01-06 15:15:59 +0100
commitdb955fa7b9b8780a59a73f9a1a253366bd22d5c3 (patch)
treea6afce515a013abe93a16d58255d1c3dd11db884 /source3/web
parenta7e7fa84900a344a8d419732cb2f1d4ef4ed0aa4 (diff)
downloadsamba-db955fa7b9b8780a59a73f9a1a253366bd22d5c3.tar.gz
samba-db955fa7b9b8780a59a73f9a1a253366bd22d5c3.tar.bz2
samba-db955fa7b9b8780a59a73f9a1a253366bd22d5c3.zip
s3/swat: Fix creation of the first share using SWAT.
This fixes bug #5965.
Diffstat (limited to 'source3/web')
-rw-r--r--source3/web/swat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/web/swat.c b/source3/web/swat.c
index 060f024581..4bfb731814 100644
--- a/source3/web/swat.c
+++ b/source3/web/swat.c
@@ -478,7 +478,7 @@ static int save_reload(int snum)
}
write_config(f, False);
- if (snum)
+ if (snum >= 0)
lp_dump_one(f, False, snum);
fclose(f);