param: rename lp function and variable from "hideunreadable" to "hide_unreadable"
authorGarming Sam <garming@catalyst.net.nz>
Tue, 4 Feb 2014 02:08:58 +0000 (15:08 +1300)
committerJeremy Allison <jra@samba.org>
Sat, 8 Feb 2014 00:19:11 +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/dir.c
source3/smbd/smb2_tcon.c

index fa87d1b2483b8a778b874be1785a8029e66c5586..4f5d6eb0769e45b7310143eeca4dbb6cfdd9d0c6 100644 (file)
@@ -88,7 +88,7 @@ FN_LOCAL_BOOL(preservecase, preservecase)
 FN_LOCAL_BOOL(shortpreservecase, shortpreservecase)
 FN_LOCAL_BOOL(hide_dot_files, hide_dot_files)
 FN_LOCAL_BOOL(hide_special_files, hide_special_files)
-FN_LOCAL_BOOL(hideunreadable, hideunreadable)
+FN_LOCAL_BOOL(hide_unreadable, hide_unreadable)
 FN_LOCAL_BOOL(hideunwriteable_files, hideunwriteable_files)
 FN_LOCAL_BOOL(access_based_share_enum, access_based_share_enum)
 FN_LOCAL_BOOL(guest_ok, guest_ok)
index b4bb7e4892611844443364f7bb184881020338a1..2d34e93bc2b872b4787b4577f9d4f101ef681500 100644 (file)
@@ -2442,7 +2442,7 @@ static struct parm_struct parm_table[] = {
                .label          = "hide unreadable",
                .type           = P_BOOL,
                .p_class        = P_LOCAL,
-               .offset         = LOCAL_VAR(hideunreadable),
+               .offset         = LOCAL_VAR(hide_unreadable),
                .special        = NULL,
                .enum_list      = NULL,
                .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
index 4def30bdc2ebd112264f7bea830d9d824c8149e3..6e92872851f7e65e02eba953294d94cd9bcaf2d4 100644 (file)
@@ -208,7 +208,7 @@ static struct loadparm_service sDefault =
        .shortpreservecase = true,
        .hide_dot_files = true,
        .hide_special_files = false,
-       .hideunreadable = false,
+       .hide_unreadable = false,
        .hideunwriteable_files = false,
        .browseable = true,
        .access_based_share_enum = false,
index 1be5daa385edcd2921caab9422787042e0bb90cc..3106ee1ee39b79cfc290073789348d3ed87f3c9a 100644 (file)
@@ -1440,7 +1440,7 @@ static bool file_is_special(connection_struct *conn,
 bool is_visible_file(connection_struct *conn, const char *dir_path,
                     const char *name, SMB_STRUCT_STAT *pst, bool use_veto)
 {
-       bool hide_unreadable = lp_hideunreadable(SNUM(conn));
+       bool hide_unreadable = lp_hide_unreadable(SNUM(conn));
        bool hide_unwriteable = lp_hideunwriteable_files(SNUM(conn));
        bool hide_special = lp_hide_special_files(SNUM(conn));
        char *entry = NULL;
index ca67461e8d025a4383040777fd5afa62e4644576..64c18536ce501d3cedcf0972260300461322c516 100644 (file)
@@ -329,7 +329,7 @@ static NTSTATUS smbd_smb2_tree_connect(struct smbd_smb2_request *req,
                break;
        }
 
-       if (lp_hideunreadable(SNUM(tcon->compat)) ||
+       if (lp_hide_unreadable(SNUM(tcon->compat)) ||
            lp_hideunwriteable_files(SNUM(tcon->compat))) {
                *out_share_flags |= SMB2_SHAREFLAG_ACCESS_BASED_DIRECTORY_ENUM;
        }