Skip to content

Commit

Permalink
Fixes #17121: Make agents preserve perm on copy to keep previous beha…
Browse files Browse the repository at this point in the history
…vior
  • Loading branch information
amousset committed Apr 15, 2020
1 parent d5179bd commit 9998ed0
Showing 1 changed file with 15 additions and 0 deletions.
@@ -0,0 +1,15 @@
diff --git a/cf-agent/verify_files_utils.c b/cf-agent/verify_files_utils.c
index 7046026..383c69b 100644
--- a/cf-agent/verify_files_utils.c
+++ b/cf-agent/verify_files_utils.c
@@ -1366,7 +1366,9 @@ bool CopyRegularFile(EvalContext *ctx, const char *source, const char *dest, str
else
{
// If preserve is true, retain permissions of source file
- if (attr.copy.preserve)
+ //if (attr.copy.preserve)
+ // Keep previous behavior to stay compatible
+ if (true)
{
if (!CopyRegularFileDisk(source, new))
{

0 comments on commit 9998ed0

Please sign in to comment.