From fc148e61f143ceeae63c0ad1a52d68548ad07aab Mon Sep 17 00:00:00 2001 From: Garming Sam Date: Tue, 4 Feb 2014 15:09:04 +1300 Subject: param: rename lp function and variable from "rootpostexec" to "root_postexec" Signed-off-by: Garming Sam Reviewed-by: Andrew Bartlett Reviewed-by: Jeremy Allison --- source3/param/loadparm.c | 2 +- source3/smbd/service.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 17ea74b8a8..e08e2c3ba2 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -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, diff --git a/source3/smbd/service.c b/source3/smbd/service.c index 12f7b13628..1324168707 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -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); } -- cgit