loadparm: rename lp[cfg]_readonly to lp[cfg]_read_only for consistency with docs
authorMichael Adam <obnox@samba.org>
Sun, 2 Feb 2014 13:37:34 +0000 (14:37 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 3 Feb 2014 00:27:01 +0000 (13:27 +1300)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
lib/param/param_functions.c
source3/smbd/service.c
source4/param/share_classic.c

index 6a37cfe6b8cbc7ab7920b8c44106576c8a309c79..afba56b6d8f8a994db448a61ebf6c197a0b30b42 100644 (file)
@@ -34,7 +34,7 @@ FN_LOCAL_STRING(fstype, fstype)
 FN_LOCAL_LIST(ntvfs_handler, ntvfs_handler)
 FN_LOCAL_BOOL(msdfs_root, msdfs_root)
 FN_LOCAL_BOOL(browseable, browseable)
-FN_LOCAL_BOOL(readonly, readonly)
+FN_LOCAL_BOOL(read_only, readonly)
 FN_LOCAL_BOOL(print_ok, print_ok)
 FN_LOCAL_BOOL(map_hidden, map_hidden)
 FN_LOCAL_BOOL(map_archive, map_archive)
index 90f216d003cc9687dcb8db731d4105898e403de7..dad24ec5819c25a5aee50df70f0fd17e08266cdf 100644 (file)
@@ -580,7 +580,7 @@ static NTSTATUS make_connection_snum(struct smbd_server_connection *sconn,
        conn->veto_oplock_list = NULL;
        conn->aio_write_behind_list = NULL;
 
-       conn->read_only = lp_readonly(SNUM(conn));
+       conn->read_only = lp_read_only(SNUM(conn));
 
        status = set_conn_force_user_group(conn, snum);
        if (!NT_STATUS_IS_OK(status)) {
index ae7412496cbefa4970779de072267f4249dee31e..17afa17525263b41390e8c608682ade75e26e90c 100644 (file)
@@ -197,7 +197,7 @@ static bool sclassic_bool_option(struct share_config *scfg, const char *opt_name
        }
 
        if (strcmp(opt_name, SHARE_READONLY) == 0) {
-               return lpcfg_readonly(s, lpcfg_default_service(lp_ctx));
+               return lpcfg_read_only(s, lpcfg_default_service(lp_ctx));
        }
 
        if (strcmp(opt_name, SHARE_MAP_SYSTEM) == 0) {