From: Ralph Boehme Date: Mon, 4 Nov 2019 11:19:24 +0000 (+0100) Subject: smbdotconf: mark "root postexec" with substitution="1" X-Git-Tag: ldb-2.1.0~573 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b92038072f3e5debd519eda0ab07182f46e06e56;p=thirdparty%2Fsamba.git smbdotconf: mark "root postexec" with substitution="1" Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- diff --git a/docs-xml/smbdotconf/misc/rootpostexec.xml b/docs-xml/smbdotconf/misc/rootpostexec.xml index d50ca7f48bb..4e74fc8e00a 100644 --- a/docs-xml/smbdotconf/misc/rootpostexec.xml +++ b/docs-xml/smbdotconf/misc/rootpostexec.xml @@ -1,6 +1,7 @@ diff --git a/source3/smbd/service.c b/source3/smbd/service.c index 70dc1466b96..07732a23297 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -1188,7 +1188,7 @@ void close_cnum(connection_struct *conn, uint64_t vuid) change_to_root_user(); /* execute any "root postexec = " line */ - if (*lp_root_postexec(talloc_tos(), SNUM(conn))) { + if (*lp_root_postexec(talloc_tos(), lp_sub, SNUM(conn))) { char *cmd = talloc_sub_full(talloc_tos(), lp_const_servicename(SNUM(conn)), conn->session_info->unix_info->unix_name, @@ -1196,7 +1196,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_root_postexec(talloc_tos(), SNUM(conn))); + lp_root_postexec(talloc_tos(), lp_sub, SNUM(conn))); smbrun(cmd, NULL, NULL); TALLOC_FREE(cmd); }