param: rename lp function and variable from "onlyuser" to "only_user"
authorGarming Sam <garming@catalyst.net.nz>
Tue, 4 Feb 2014 02:09:10 +0000 (15:09 +1300)
committerJeremy Allison <jra@samba.org>
Sat, 8 Feb 2014 00:19:15 +0000 (16:19 -0800)
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/param/param_functions.c
lib/param/param_table.c
source3/param/loadparm.c
source3/smbd/share_access.c

index 6587b2d8e92f2fc825f9d3444e2decf46a2e5e7f..5876e62a0b977e78f5f7204a5e361c6bf24606a6 100644 (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)
index 9d25db6b932329b7a76d88ab73b08ebadc52423a..6d07f40d6cbb5f76a16a75bf8fe57f70c3a3c69e 100644 (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,
index 53d7370e13be365696d7b374bd4bc4b2151b4e06..e3e4df4c6d9a6d8e363bdfe08986938934025088 100644 (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,
index d3c18fc80bee0e0da334fa438af46fd605a2a28e..c9e93ac45f907faba2fa8ebd6195842f326d188d 100644 (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;