Skip to content

Commit

Permalink
Fixes #23431: Memory corruption with body inheritance (#1828)
Browse files Browse the repository at this point in the history
  • Loading branch information
amousset committed Sep 14, 2023
1 parent 7f2a4bb commit af30030
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion techniques/system/common/1.0/update.st
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,23 @@ body copy_from remote(server, path)
# Same as remote above, but don't fail on missing target
body copy_from try_remote(server, path)
{
inherit_from => remote("${server}", "${path}");
servers => {
"${server}"
};
source => "${path}";
compare => "digest";
preserve => "false"; #do not preserve permissions
verify => "true";
purge => "true";
copy_backup => "false";
portnumber => "${system_common.community_port}";
missing_ok => "true";
&if(INITIAL)&
trust_new_server.!root_server::
trustkey => "true";
&endif&
}
# Local copy
Expand Down

0 comments on commit af30030

Please sign in to comment.