diff options
| author | Andrew Bartlett <abartlet@samba.org> | 2014-01-09 13:33:15 +1300 |
|---|---|---|
| committer | Michael Adam <obnox@samba.org> | 2014-01-31 08:06:42 +0100 |
| commit | eabecdadaa90bb7368253f208290ed4b33435d32 (patch) | |
| tree | 651539a0dec2927e20d824990a8312225a1c8483 /lib/param | |
| parent | 275397574bc03205e345a843d4144fdbefafad2c (diff) | |
lib/param: Fix default of usershare path to match docs
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'lib/param')
| -rw-r--r-- | lib/param/loadparm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c index dae92300df..10e7004942 100644 --- a/lib/param/loadparm.c +++ b/lib/param/loadparm.c @@ -2366,6 +2366,8 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx) lpcfg_do_global_parameter(lp_ctx, "-valid", "yes"); + lpcfg_do_global_parameter_var(lp_ctx, "usershare path", "%s/usershares", get_dyn_STATEDIR()); + for (i = 0; parm_table[i].label; i++) { if (!(lp_ctx->flags[i] & FLAG_CMDLINE)) { lp_ctx->flags[i] |= FLAG_DEFAULT; |
