mirror of
https://github.com/samba-team/samba.git
synced 2025-03-05 20:58:40 +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:
parent
324a976653
commit
debda15785
@ -89,7 +89,7 @@ FN_LOCAL_BOOL(shortpreservecase, shortpreservecase)
|
|||||||
FN_LOCAL_BOOL(hide_dot_files, hide_dot_files)
|
FN_LOCAL_BOOL(hide_dot_files, hide_dot_files)
|
||||||
FN_LOCAL_BOOL(hide_special_files, hide_special_files)
|
FN_LOCAL_BOOL(hide_special_files, hide_special_files)
|
||||||
FN_LOCAL_BOOL(hide_unreadable, hide_unreadable)
|
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(access_based_share_enum, access_based_share_enum)
|
||||||
FN_LOCAL_BOOL(guest_ok, guest_ok)
|
FN_LOCAL_BOOL(guest_ok, guest_ok)
|
||||||
FN_LOCAL_BOOL(guest_only, guest_only)
|
FN_LOCAL_BOOL(guest_only, guest_only)
|
||||||
|
@ -2451,7 +2451,7 @@ static struct parm_struct parm_table[] = {
|
|||||||
.label = "hide unwriteable files",
|
.label = "hide unwriteable files",
|
||||||
.type = P_BOOL,
|
.type = P_BOOL,
|
||||||
.p_class = P_LOCAL,
|
.p_class = P_LOCAL,
|
||||||
.offset = LOCAL_VAR(hideunwriteable_files),
|
.offset = LOCAL_VAR(hide_unwriteable_files),
|
||||||
.special = NULL,
|
.special = NULL,
|
||||||
.enum_list = NULL,
|
.enum_list = NULL,
|
||||||
.flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
|
.flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
|
||||||
|
@ -209,7 +209,7 @@ static struct loadparm_service sDefault =
|
|||||||
.hide_dot_files = true,
|
.hide_dot_files = true,
|
||||||
.hide_special_files = false,
|
.hide_special_files = false,
|
||||||
.hide_unreadable = false,
|
.hide_unreadable = false,
|
||||||
.hideunwriteable_files = false,
|
.hide_unwriteable_files = false,
|
||||||
.browseable = true,
|
.browseable = true,
|
||||||
.access_based_share_enum = false,
|
.access_based_share_enum = false,
|
||||||
.bAvailable = true,
|
.bAvailable = true,
|
||||||
|
@ -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)
|
const char *name, SMB_STRUCT_STAT *pst, bool use_veto)
|
||||||
{
|
{
|
||||||
bool hide_unreadable = lp_hide_unreadable(SNUM(conn));
|
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));
|
bool hide_special = lp_hide_special_files(SNUM(conn));
|
||||||
char *entry = NULL;
|
char *entry = NULL;
|
||||||
struct smb_filename *smb_fname_base = NULL;
|
struct smb_filename *smb_fname_base = NULL;
|
||||||
|
@ -330,7 +330,7 @@ static NTSTATUS smbd_smb2_tree_connect(struct smbd_smb2_request *req,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (lp_hide_unreadable(SNUM(tcon->compat)) ||
|
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;
|
*out_share_flags |= SMB2_SHAREFLAG_ACCESS_BASED_DIRECTORY_ENUM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user