We cannot add a share via SWAT when no shares are defined.
I found this bug at Samba 3.2.4/Samba 3.2.6.
If one or mode shares are defined, this bug does not occur.
(1) delete smb.conf
(2) attempt to create a share via SHARE menu.
(3) no share is added. logs:
[2008/12/14 15:00:09, 0] lib/substitute.c:alloc_sub_basic(556)
alloc_sub_basic: NULL source string! This should not happen
Created attachment 3853 [details]
I think the attached patch solves the problem.
Can you confirm?
Patch applied to all branches.
Closing out bug report.
Please re-open if it's still an issue.
Thanks for reporting!