mirror of
https://github.com/samba-team/samba.git
synced 2025-08-30 17:49:30 +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:
committed by
Jeremy Allison
parent
51f8a24d26
commit
c81c75d263
@ -103,7 +103,7 @@ FN_LOCAL_PARM_BOOL(posix_locking, posix_locking)
|
|||||||
FN_LOCAL_BOOL(kernel_oplocks, kernel_oplocks)
|
FN_LOCAL_BOOL(kernel_oplocks, kernel_oplocks)
|
||||||
FN_LOCAL_BOOL(level2_oplocks, level2_oplocks)
|
FN_LOCAL_BOOL(level2_oplocks, level2_oplocks)
|
||||||
FN_LOCAL_BOOL(kernel_share_modes, kernel_share_modes)
|
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_PARM_BOOL(mangled_names, mangled_names)
|
||||||
FN_LOCAL_BOOL(follow_symlinks, follow_symlinks)
|
FN_LOCAL_BOOL(follow_symlinks, follow_symlinks)
|
||||||
FN_LOCAL_BOOL(syncalways, syncalways)
|
FN_LOCAL_BOOL(syncalways, syncalways)
|
||||||
|
@ -1054,7 +1054,7 @@ static struct parm_struct parm_table[] = {
|
|||||||
.label = "only user",
|
.label = "only user",
|
||||||
.type = P_BOOL,
|
.type = P_BOOL,
|
||||||
.p_class = P_LOCAL,
|
.p_class = P_LOCAL,
|
||||||
.offset = LOCAL_VAR(onlyuser),
|
.offset = LOCAL_VAR(only_user),
|
||||||
.special = NULL,
|
.special = NULL,
|
||||||
.enum_list = NULL,
|
.enum_list = NULL,
|
||||||
.flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_DEPRECATED,
|
.flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_DEPRECATED,
|
||||||
|
@ -230,7 +230,7 @@ static struct loadparm_service sDefault =
|
|||||||
.oplocks = true,
|
.oplocks = true,
|
||||||
.kernel_oplocks = false,
|
.kernel_oplocks = false,
|
||||||
.level2_oplocks = true,
|
.level2_oplocks = true,
|
||||||
.onlyuser = false,
|
.only_user = false,
|
||||||
.mangled_names = true,
|
.mangled_names = true,
|
||||||
.bWidelinks = false,
|
.bWidelinks = false,
|
||||||
.follow_symlinks = true,
|
.follow_symlinks = true,
|
||||||
|
@ -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];
|
const char *list[2];
|
||||||
list[0] = lp_username(talloc_tos(), snum);
|
list[0] = lp_username(talloc_tos(), snum);
|
||||||
list[1] = NULL;
|
list[1] = NULL;
|
||||||
|
Reference in New Issue
Block a user