summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-01-12 16:25:03 -0800
committerJeremy Allison <jra@samba.org>2009-01-12 16:25:03 -0800
commitf497a79f28180e1ddcdb1749e4e5c43532474de9 (patch)
tree6db5d051729e15e9b55e4119a7d66126fd6bef49
parent03f3c65ce439983c0941eba11d69b75c5fa39311 (diff)
downloadsamba-f497a79f28180e1ddcdb1749e4e5c43532474de9.tar.gz
samba-f497a79f28180e1ddcdb1749e4e5c43532474de9.tar.bz2
samba-f497a79f28180e1ddcdb1749e4e5c43532474de9.zip
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.
-rw-r--r--docs-xml/smbdotconf/locking/sharemodes.xml23
-rw-r--r--source3/param/loadparm.c2
2 files changed, 13 insertions, 12 deletions
diff --git a/docs-xml/smbdotconf/locking/sharemodes.xml b/docs-xml/smbdotconf/locking/sharemodes.xml
index e8371a563d..c529886d33 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">
<description>
- <para>This enables or disables the honoring of
- the <parameter moreinfo="none">share modes</parameter> during a file open. These
- modes are used by clients to gain exclusive read or write access
+ <para>This enables or disables the honoring of
+ the <parameter moreinfo="none">share modes</parameter> during a file open. These
+ modes are used by clients to gain exclusive read or write access
to a file.</para>
+ <para>This is a deprecated option from old versions of
+ Samba, and will be removed in the next major release.
+ </para>
+
<para>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).</para>
+ they are simulated using shared memory.</para>
- <para>The share modes that are enabled by this option are
- <constant>DENY_DOS</constant>, <constant>DENY_ALL</constant>,
- <constant>DENY_READ</constant>, <constant>DENY_WRITE</constant>,
- <constant>DENY_NONE</constant> and <constant>DENY_FCB</constant>.
+ <para>The share modes that are enabled by this option are
+ the standard Windows share modes.
</para>
- <para>This option gives full share compatibility and enabled
+ <para>This option gives full share compatibility and is enabled
by default.</para>
- <para>You should <emphasis>NEVER</emphasis> turn this parameter
+ <para>You should <emphasis>NEVER</emphasis> turn this parameter
off as many Windows applications will break if you do so.</para>
</description>
<value type="default">yes</value>
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 6c0936a4bc..a874ce29d8 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},