diff options
author | Andrew Bartlett <abartlet@samba.org> | 2013-12-24 16:03:17 +1300 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-01-24 16:18:42 -0800 |
commit | 63c92f7e986ed1e6e0e81f60ec9df2728836d287 (patch) | |
tree | bbea917a703080574483c28652df4f744051af76 | |
parent | d7b18d1e56418cd5419656dd24b706857235869d (diff) | |
download | samba-63c92f7e986ed1e6e0e81f60ec9df2728836d287.tar.gz samba-63c92f7e986ed1e6e0e81f60ec9df2728836d287.tar.xz samba-63c92f7e986ed1e6e0e81f60ec9df2728836d287.zip |
param: Rename variable used for lp_readonly bRead_only
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | lib/param/loadparm.c | 4 | ||||
-rw-r--r-- | lib/param/param_functions.c | 2 | ||||
-rw-r--r-- | lib/param/param_table.c | 8 | ||||
-rw-r--r-- | source3/param/loadparm.c | 8 |
4 files changed, 11 insertions, 11 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c index a7d96c65f7..5b7ed1c646 100644 --- a/lib/param/loadparm.c +++ b/lib/param/loadparm.c @@ -789,7 +789,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->bRead_only = false; + service->readonly = false; /* Printer services must be printable. */ service->bPrint_ok = true; @@ -2051,7 +2051,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->bRead_only = true; + lp_ctx->sDefault->readonly = true; lp_ctx->sDefault->bMap_archive = true; lp_ctx->sDefault->iStrictLocking = true; lp_ctx->sDefault->bOpLocks = true; diff --git a/lib/param/param_functions.c b/lib/param/param_functions.c index b65630cb67..48f83dec7e 100644 --- a/lib/param/param_functions.c +++ b/lib/param/param_functions.c @@ -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, bRead_only) +FN_LOCAL_BOOL(readonly, readonly) FN_LOCAL_BOOL(print_ok, bPrint_ok) FN_LOCAL_BOOL(map_hidden, bMap_hidden) FN_LOCAL_BOOL(map_archive, bMap_archive) diff --git a/lib/param/param_table.c b/lib/param/param_table.c index b5f99c7518..c6fc2ce958 100644 --- a/lib/param/param_table.c +++ b/lib/param/param_table.c @@ -845,7 +845,7 @@ static struct parm_struct parm_table[] = { .label = "read only", .type = P_BOOL, .p_class = P_LOCAL, - .offset = LOCAL_VAR(bRead_only), + .offset = LOCAL_VAR(readonly), .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(bRead_only), + .offset = LOCAL_VAR(readonly), .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(bRead_only), + .offset = LOCAL_VAR(readonly), .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(bRead_only), + .offset = LOCAL_VAR(readonly), .special = NULL, .enum_list = NULL, .flags = FLAG_HIDE, diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 1f6bd050ac..7b2fe9bc12 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -213,7 +213,7 @@ static struct loadparm_service sDefault = .browseable = true, .bAccessBasedShareEnum = false, .bAvailable = true, - .bRead_only = true, + .readonly = true, .bGuest_only = false, .bAdministrative_share = false, .bGuest_ok = false, @@ -1742,7 +1742,7 @@ static bool lp_add_ipc(const char *ipc_name, bool guest_ok) string_set(&ServicePtrs[i]->fstype, "IPC"); ServicePtrs[i]->iMaxConnections = 0; ServicePtrs[i]->bAvailable = true; - ServicePtrs[i]->bRead_only = true; + ServicePtrs[i]->readonly = true; ServicePtrs[i]->bGuest_only = false; ServicePtrs[i]->bAdministrative_share = true; ServicePtrs[i]->bGuest_ok = guest_ok; @@ -1780,7 +1780,7 @@ bool lp_add_printer(const char *pszPrintername, int iDefaultService) ServicePtrs[i]->browseable = sDefault.browseable; /* Printers cannot be read_only. */ - ServicePtrs[i]->bRead_only = false; + ServicePtrs[i]->readonly = false; /* No oplocks on printer services. */ ServicePtrs[i]->bOpLocks = false; /* Printer services must be printable. */ @@ -4446,7 +4446,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]->bRead_only = false; + ServicePtrs[iService]->readonly = false; } /* Write the ACL of the new/modified share. */ |