Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #13612: The file from Rudder server technique may change permission of the destination parent directory instead of the file #1557

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions techniques/system/common/1.0/rudder-lib.st
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,17 @@ body copy_from scp(from, server,compare,trustkey,preserve,purge)
# running on a policy server instead of copying from a localhost remote blindly.
body copy_from rudder_copy_from(from, server,compare,trustkey,preserve,purge) {

source => "${from}";

compare => "${compare}";
encrypt => "true";
verify => "true";
trustkey => "${trustkey}";
preserve => "${preserve}"; # Preserve the permissions
purge => "${purge}";
source => "${from}";

compare => "${compare}";
encrypt => "true";
verify => "true";
type_check => "true";
trustkey => "${trustkey}";
preserve => "${preserve}"; # Preserve the permissions
purge => "${purge}";
copy_backup => "timestamp";
servers => { "${server}" };
servers => { "${server}" };

community_edition::
portnumber => "&COMMUNITYPORT&";
Expand Down