From c81c75d263ffe75556cefa2938d6ebc94fae1b67 Mon Sep 17 00:00:00 2001 From: Garming Sam Date: Tue, 4 Feb 2014 15:09:10 +1300 Subject: [PATCH] param: rename lp function and variable from "onlyuser" to "only_user" Signed-off-by: Garming Sam Reviewed-by: Andrew Bartlett Reviewed-by: Jeremy Allison --- lib/param/param_functions.c | 2 +- lib/param/param_table.c | 2 +- source3/param/loadparm.c | 2 +- source3/smbd/share_access.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/param/param_functions.c b/lib/param/param_functions.c index 6587b2d8e92..5876e62a0b9 100644 --- a/lib/param/param_functions.c +++ b/lib/param/param_functions.c @@ -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) diff --git a/lib/param/param_table.c b/lib/param/param_table.c index 9d25db6b932..6d07f40d6cb 100644 --- a/lib/param/param_table.c +++ b/lib/param/param_table.c @@ -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, diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 53d7370e13b..e3e4df4c6d9 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -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, diff --git a/source3/smbd/share_access.c b/source3/smbd/share_access.c index d3c18fc80be..c9e93ac45f9 100644 --- a/source3/smbd/share_access.c +++ b/source3/smbd/share_access.c @@ -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; -- 2.11.4.GIT