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

param: rename lp function and variable from "onlyuser" to "only_user"

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Garming Sam 2014-02-04 15:09:10 +13:00 committed by Jeremy Allison
parent 51f8a24d26
commit c81c75d263
4 changed files with 4 additions and 4 deletions

View File

@ -103,7 +103,7 @@ FN_LOCAL_PARM_BOOL(posix_locking, posix_locking)
FN_LOCAL_BOOL(kernel_oplocks, kernel_oplocks)
FN_LOCAL_BOOL(level2_oplocks, level2_oplocks)
FN_LOCAL_BOOL(kernel_share_modes, kernel_share_modes)
FN_LOCAL_BOOL(onlyuser, onlyuser)
FN_LOCAL_BOOL(only_user, only_user)
FN_LOCAL_PARM_BOOL(mangled_names, mangled_names)
FN_LOCAL_BOOL(follow_symlinks, follow_symlinks)
FN_LOCAL_BOOL(syncalways, syncalways)

View File

@ -1054,7 +1054,7 @@ static struct parm_struct parm_table[] = {
.label = "only user",
.type = P_BOOL,
.p_class = P_LOCAL,
.offset = LOCAL_VAR(onlyuser),
.offset = LOCAL_VAR(only_user),
.special = NULL,
.enum_list = NULL,
.flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_DEPRECATED,

View File

@ -230,7 +230,7 @@ static struct loadparm_service sDefault =
.oplocks = true,
.kernel_oplocks = false,
.level2_oplocks = true,
.onlyuser = false,
.only_user = false,
.mangled_names = true,
.bWidelinks = false,
.follow_symlinks = true,

View File

@ -217,7 +217,7 @@ bool user_ok_token(const char *username, const char *domain,
}
}
if (lp_onlyuser(snum)) {
if (lp_only_user(snum)) {
const char *list[2];
list[0] = lp_username(talloc_tos(), snum);
list[1] = NULL;