]> git.samba.org - garming/samba-autobuild/.git/commitdiff
param: rename lp function and variable from "hideunwriteable_files" to "hide_unwritea...
authorGarming Sam <garming@catalyst.net.nz>
Tue, 4 Feb 2014 02:08:59 +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 4f5d6eb0769e45b7310143eeca4dbb6cfdd9d0c6..6cafcfe934d49853597020ab6ce38226e880f3a6 100644 (file)
@@ -89,7 +89,7 @@ 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(hide_unreadable, hide_unreadable)
-FN_LOCAL_BOOL(hideunwriteable_files, hideunwriteable_files)
+FN_LOCAL_BOOL(hide_unwriteable_files, hide_unwriteable_files)
 FN_LOCAL_BOOL(access_based_share_enum, access_based_share_enum)
 FN_LOCAL_BOOL(guest_ok, guest_ok)
 FN_LOCAL_BOOL(guest_only, guest_only)
index 2d34e93bc2b872b4787b4577f9d4f101ef681500..751a1a2482af60c526e9169849fc5a43918769d5 100644 (file)
@@ -2451,7 +2451,7 @@ static struct parm_struct parm_table[] = {
                .label          = "hide unwriteable files",
                .type           = P_BOOL,
                .p_class        = P_LOCAL,
-               .offset         = LOCAL_VAR(hideunwriteable_files),
+               .offset         = LOCAL_VAR(hide_unwriteable_files),
                .special        = NULL,
                .enum_list      = NULL,
                .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
index 6e92872851f7e65e02eba953294d94cd9bcaf2d4..229879668d00f6f270197e287f3c8e556e7073ad 100644 (file)
@@ -209,7 +209,7 @@ static struct loadparm_service sDefault =
        .hide_dot_files = true,
        .hide_special_files = false,
        .hide_unreadable = false,
-       .hideunwriteable_files = false,
+       .hide_unwriteable_files = false,
        .browseable = true,
        .access_based_share_enum = false,
        .bAvailable = true,
index 3106ee1ee39b79cfc290073789348d3ed87f3c9a..cb49a96c71aff503c8bfe73fbeef7d2ed5856d99 100644 (file)
@@ -1441,7 +1441,7 @@ 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_hide_unreadable(SNUM(conn));
-       bool hide_unwriteable = lp_hideunwriteable_files(SNUM(conn));
+       bool hide_unwriteable = lp_hide_unwriteable_files(SNUM(conn));
        bool hide_special = lp_hide_special_files(SNUM(conn));
        char *entry = NULL;
        struct smb_filename *smb_fname_base = NULL;
index 64c18536ce501d3cedcf0972260300461322c516..c7dc928ca3f822d34926d6b6f7af2ef28ea3d27c 100644 (file)
@@ -330,7 +330,7 @@ static NTSTATUS smbd_smb2_tree_connect(struct smbd_smb2_request *req,
        }
 
        if (lp_hide_unreadable(SNUM(tcon->compat)) ||
-           lp_hideunwriteable_files(SNUM(tcon->compat))) {
+           lp_hide_unwriteable_files(SNUM(tcon->compat))) {
                *out_share_flags |= SMB2_SHAREFLAG_ACCESS_BASED_DIRECTORY_ENUM;
        }