[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4814-gd727c40

Jeremy Allison jra at samba.org
Tue Jan 13 00:28:32 GMT 2009


The branch, v3-3-test has been updated
       via  d727c40eabc72f9351dcf5cd17a079c83f349c65 (commit)
      from  8e29070ccd0b5103af2e6da75644169f46700313 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit d727c40eabc72f9351dcf5cd17a079c83f349c65
Author: Jeremy Allison <jra at samba.org>
Date:   Mon Jan 12 16:27:31 2009 -0800

    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.

-----------------------------------------------------------------------

Summary of changes:
 docs-xml/smbdotconf/locking/sharemodes.xml |   23 ++++++++++++-----------
 source/param/loadparm.c                    |    2 +-
 2 files changed, 13 insertions(+), 12 deletions(-)


Changeset truncated at 500 lines:

diff --git a/docs-xml/smbdotconf/locking/sharemodes.xml b/docs-xml/smbdotconf/locking/sharemodes.xml
index e8371a5..c529886 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/source/param/loadparm.c b/source/param/loadparm.c
index 9294ece..3058e51 100644
--- a/source/param/loadparm.c
+++ b/source/param/loadparm.c
@@ -3480,7 +3480,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},


-- 
Samba Shared Repository


More information about the samba-cvs mailing list