From: Jeremy Allison Date: Tue, 13 Jan 2009 00:25:03 +0000 (-0800) Subject: Deprecate the "share modes" parameter to address bug #6024, swat disagrees with smbst... X-Git-Tag: samba-4.0.0alpha6~128 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f497a79f28180e1ddcdb1749e4e5c43532474de9;p=thirdparty%2Fsamba.git Deprecate the "share modes" parameter to address bug #6024, swat disagrees with smbstatus as to share mode with share modes = No set in samba. Jeremy. --- diff --git a/docs-xml/smbdotconf/locking/sharemodes.xml b/docs-xml/smbdotconf/locking/sharemodes.xml index e8371a563da..c529886d33e 100644 --- a/docs-xml/smbdotconf/locking/sharemodes.xml +++ b/docs-xml/smbdotconf/locking/sharemodes.xml @@ -3,25 +3,26 @@ context="S" xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"> - This enables or disables the honoring of - the share modes during a file open. These - modes are used by clients to gain exclusive read or write access + This enables or disables the honoring of + the share modes during a file open. These + modes are used by clients to gain exclusive read or write access to a file. + This is a deprecated option from old versions of + Samba, and will be removed in the next major release. + + These open modes are not directly supported by UNIX, so - they are simulated using shared memory, or lock files if your - UNIX doesn't support shared memory (almost all do). + they are simulated using shared memory. - The share modes that are enabled by this option are - DENY_DOS, DENY_ALL, - DENY_READ, DENY_WRITE, - DENY_NONE and DENY_FCB. + The share modes that are enabled by this option are + the standard Windows share modes. - This option gives full share compatibility and enabled + This option gives full share compatibility and is enabled by default. - You should NEVER turn this parameter + You should NEVER turn this parameter off as many Windows applications will break if you do so. yes diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 6c0936a4bc1..a874ce29d85 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -3493,7 +3493,7 @@ static struct parm_struct parm_table[] = { .ptr = &sDefault.bShareModes, .special = NULL, .enum_list = NULL, - .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL, + .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL | FLAG_DEPRECATED, }, {N_("Ldap Options"), P_SEP, P_SEPARATOR},