diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-03-27 21:00:04 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-03-27 21:00:04 +1100 |
commit | 08ec91958d5d773dfc805869685094da749470e8 (patch) | |
tree | 254b24dcb8c713c4f733afc87d49b1214c8d7fc0 /source | |
parent | 2c18482b1983b4e2764beccc20f08e9b3074816a (diff) | |
download | samba-08ec91958d5d773dfc805869685094da749470e8.tar.gz samba-08ec91958d5d773dfc805869685094da749470e8.tar.xz samba-08ec91958d5d773dfc805869685094da749470e8.zip |
Fix how we initialise the oplocks parameter.
Andrew Bartlett
Diffstat (limited to 'source')
-rw-r--r-- | source/param/loadparm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c index 9e0a239abeb..94f4033352f 100644 --- a/source/param/loadparm.c +++ b/source/param/loadparm.c @@ -2252,6 +2252,7 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx) lp_ctx->sDefault->bRead_only = true; lp_ctx->sDefault->bMap_archive = true; lp_ctx->sDefault->bStrictLocking = true; + lp_ctx->sDefault->bOplocks = true; lp_ctx->sDefault->iCreate_mask = 0744; lp_ctx->sDefault->iCreate_force_mode = 0000; lp_ctx->sDefault->iDir_mask = 0755; @@ -2408,8 +2409,6 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx) lp_do_global_parameter(lp_ctx, "prefork children:smb", "4"); - lp_do_global_parameter(lp_ctx, "oplocks", "true"); - for (i = 0; parm_table[i].label; i++) { if (!(lp_ctx->flags[i] & FLAG_CMDLINE)) { lp_ctx->flags[i] |= FLAG_DEFAULT; |