mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
param: rename lp function and variable from "rootpostexec" to "root_postexec"
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
8ec3e11004
commit
fc148e61f1
@ -50,7 +50,7 @@ FN_LOCAL_INTEGER(force_directory_mode, force_directory_mode)
|
||||
FN_LOCAL_STRING(preexec, preexec)
|
||||
FN_LOCAL_STRING(postexec, postexec)
|
||||
FN_LOCAL_STRING(rootpreexec, rootpreexec)
|
||||
FN_LOCAL_STRING(rootpostexec, rootpostexec)
|
||||
FN_LOCAL_STRING(root_postexec, root_postexec)
|
||||
FN_LOCAL_STRING(dont_descend, dont_descend)
|
||||
FN_LOCAL_STRING(username, username)
|
||||
FN_LOCAL_LIST(invalid_users, invalid_users)
|
||||
|
@ -3616,7 +3616,7 @@ static struct parm_struct parm_table[] = {
|
||||
.label = "root postexec",
|
||||
.type = P_STRING,
|
||||
.p_class = P_LOCAL,
|
||||
.offset = LOCAL_VAR(rootpostexec),
|
||||
.offset = LOCAL_VAR(root_postexec),
|
||||
.special = NULL,
|
||||
.enum_list = NULL,
|
||||
.flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
|
||||
|
@ -156,7 +156,7 @@ static struct loadparm_service sDefault =
|
||||
.preexec = NULL,
|
||||
.postexec = NULL,
|
||||
.rootpreexec = NULL,
|
||||
.rootpostexec = NULL,
|
||||
.root_postexec = NULL,
|
||||
.cups_options = NULL,
|
||||
.printcommand = NULL,
|
||||
.lpqcommand = NULL,
|
||||
|
@ -1145,7 +1145,7 @@ void close_cnum(connection_struct *conn, uint64_t vuid)
|
||||
|
||||
change_to_root_user();
|
||||
/* execute any "root postexec = " line */
|
||||
if (*lp_rootpostexec(talloc_tos(), SNUM(conn))) {
|
||||
if (*lp_root_postexec(talloc_tos(), SNUM(conn))) {
|
||||
char *cmd = talloc_sub_advanced(talloc_tos(),
|
||||
lp_servicename(talloc_tos(), SNUM(conn)),
|
||||
conn->session_info->unix_info->unix_name,
|
||||
@ -1153,7 +1153,7 @@ void close_cnum(connection_struct *conn, uint64_t vuid)
|
||||
conn->session_info->unix_token->gid,
|
||||
conn->session_info->unix_info->sanitized_username,
|
||||
conn->session_info->info->domain_name,
|
||||
lp_rootpostexec(talloc_tos(), SNUM(conn)));
|
||||
lp_root_postexec(talloc_tos(), SNUM(conn)));
|
||||
smbrun(cmd,NULL);
|
||||
TALLOC_FREE(cmd);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user