1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-04 16:58:42 +03:00

param: rename lp function and variable from "hideunwriteable_files" to "hide_unwriteable_files"

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:
Garming Sam 2014-02-04 15:08:59 +13:00 committed by Jeremy Allison
parent 324a976653
commit debda15785
5 changed files with 5 additions and 5 deletions

View 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)

View 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,

View 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,

View 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;

View 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;
}