summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/param/loadparm.c9
-rw-r--r--source3/smbd/open.c4
3 files changed, 0 insertions, 14 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 979bcfe0ce..4080f23738 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1298,7 +1298,6 @@ bool lp_dmapi_support(int );
bool lp_locking(const struct share_params *p );
int lp_strict_locking(const struct share_params *p );
bool lp_posix_locking(const struct share_params *p );
-bool lp_share_modes(int );
bool lp_oplocks(int );
bool lp_kernel_oplocks(int );
bool lp_level2_oplocks(int );
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index e31c047230..12ba2f1d3b 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -3191,15 +3191,6 @@ static struct parm_struct parm_table[] = {
.enum_list = enum_bool_auto,
.flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
- {
- .label = "share modes",
- .type = P_BOOL,
- .p_class = P_LOCAL,
- .offset = LOCAL_VAR(bShareModes),
- .special = NULL,
- .enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL | FLAG_DEPRECATED,
- },
{N_("Ldap Options"), P_SEP, P_SEPARATOR},
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index c2bf8edb7a..c88fe65a34 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -1038,10 +1038,6 @@ static NTSTATUS open_mode_check(connection_struct *conn,
}
#endif
- if (!lp_share_modes(SNUM(conn))) {
- return NT_STATUS_OK;
- }
-
/* Now we check the share modes, after any oplock breaks. */
for(i = 0; i < lck->data->num_share_modes; i++) {