1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

loadparm: rename variable for "read only" from readonly to read_only

for consistency docs/functions/variables

Signed-off-by: Michael Adam <obnox@samba.org>

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
Michael Adam 2014-02-02 14:44:05 +01:00 committed by Andrew Bartlett
parent 16c8762330
commit 0cdb0f8998
4 changed files with 11 additions and 11 deletions

View File

@ -787,7 +787,7 @@ bool lpcfg_add_printer(struct loadparm_context *lp_ctx,
lpcfg_string_set(service, &service->comment, comment);
service->browseable = default_service->browseable;
/* Printers cannot be read_only. */
service->readonly = false;
service->read_only = false;
/* Printer services must be printable. */
service->print_ok = true;
@ -2008,7 +2008,7 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx)
lp_ctx->sDefault->iMaxPrintJobs = 1000;
lp_ctx->sDefault->bAvailable = true;
lp_ctx->sDefault->browseable = true;
lp_ctx->sDefault->readonly = true;
lp_ctx->sDefault->read_only = true;
lp_ctx->sDefault->map_archive = true;
lp_ctx->sDefault->strict_locking = true;
lp_ctx->sDefault->oplocks = true;

View 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(read_only, readonly)
FN_LOCAL_BOOL(read_only, read_only)
FN_LOCAL_BOOL(print_ok, print_ok)
FN_LOCAL_BOOL(map_hidden, map_hidden)
FN_LOCAL_BOOL(map_archive, map_archive)

View File

@ -845,7 +845,7 @@ static struct parm_struct parm_table[] = {
.label = "read only",
.type = P_BOOL,
.p_class = P_LOCAL,
.offset = LOCAL_VAR(readonly),
.offset = LOCAL_VAR(read_only),
.special = NULL,
.enum_list = NULL,
.flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE,
@ -854,7 +854,7 @@ static struct parm_struct parm_table[] = {
.label = "write ok",
.type = P_BOOLREV,
.p_class = P_LOCAL,
.offset = LOCAL_VAR(readonly),
.offset = LOCAL_VAR(read_only),
.special = NULL,
.enum_list = NULL,
.flags = FLAG_HIDE,
@ -863,7 +863,7 @@ static struct parm_struct parm_table[] = {
.label = "writeable",
.type = P_BOOLREV,
.p_class = P_LOCAL,
.offset = LOCAL_VAR(readonly),
.offset = LOCAL_VAR(read_only),
.special = NULL,
.enum_list = NULL,
.flags = FLAG_HIDE,
@ -872,7 +872,7 @@ static struct parm_struct parm_table[] = {
.label = "writable",
.type = P_BOOLREV,
.p_class = P_LOCAL,
.offset = LOCAL_VAR(readonly),
.offset = LOCAL_VAR(read_only),
.special = NULL,
.enum_list = NULL,
.flags = FLAG_HIDE,

View File

@ -213,7 +213,7 @@ static struct loadparm_service sDefault =
.browseable = true,
.access_based_share_enum = false,
.bAvailable = true,
.readonly = true,
.read_only = true,
.guest_only = false,
.administrative_share = false,
.guest_ok = false,
@ -1790,7 +1790,7 @@ static bool lp_add_ipc(const char *ipc_name, bool guest_ok)
string_set(&ServicePtrs[i]->fstype, "IPC");
ServicePtrs[i]->max_connections = 0;
ServicePtrs[i]->bAvailable = true;
ServicePtrs[i]->readonly = true;
ServicePtrs[i]->read_only = true;
ServicePtrs[i]->guest_only = false;
ServicePtrs[i]->administrative_share = true;
ServicePtrs[i]->guest_ok = guest_ok;
@ -1828,7 +1828,7 @@ bool lp_add_printer(const char *pszPrintername, int iDefaultService)
ServicePtrs[i]->browseable = sDefault.browseable;
/* Printers cannot be read_only. */
ServicePtrs[i]->readonly = false;
ServicePtrs[i]->read_only = false;
/* No oplocks on printer services. */
ServicePtrs[i]->oplocks = false;
/* Printer services must be printable. */
@ -4255,7 +4255,7 @@ static int process_usershare_file(const char *dir_name, const char *file_name, i
added_service = true;
/* Read only is controlled by usershare ACL below. */
ServicePtrs[iService]->readonly = false;
ServicePtrs[iService]->read_only = false;
}
/* Write the ACL of the new/modified share. */