Skip to content

ENT-11988: Fixed bug where remote file copy always preserves source perms (3.21.x)#5856

Merged
larsewi merged 1 commit into
cfengine:3.21.xfrom
larsewi:preserve-3.21.x
Aug 20, 2025
Merged

ENT-11988: Fixed bug where remote file copy always preserves source perms (3.21.x)#5856
larsewi merged 1 commit into
cfengine:3.21.xfrom
larsewi:preserve-3.21.x

Conversation

@larsewi

@larsewi larsewi commented Aug 19, 2025

Copy link
Copy Markdown
Contributor

Remote file copy with the 'copy_from' attribute now only preserves
source file permissions if the 'preserve' attribute in 'body copy_from'
is true. Otherwise it will use the permissions of the destination file
if it already exists and default permissions if it does not.

Ticket: ENT-11988
Changelog: Commit
Signed-off-by: Lars Erik Wik lars.erik.wik@northern.tech
(cherry picked from commit e2021b5)

Back ported from #5837

Remote file copy with the 'copy_from' attribute now only preserves
source file permissions if the 'preserve' attribute in 'body copy_from'
is true. Otherwise it will use the permissions of the destination file
if it already exists and default permissions if it does not.

Ticket: ENT-11988
Changelog: Commit
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
(cherry picked from commit e2021b5)
@larsewi larsewi changed the title Fixed bug where remote file copy always preserves source perms ENT-11988: Fixed bug where remote file copy always preserves source perms Aug 19, 2025
@larsewi larsewi marked this pull request as draft August 19, 2025 14:04
@larsewi

larsewi commented Aug 19, 2025

Copy link
Copy Markdown
Contributor Author

@cf-bottom Jenkins please :)

@cf-bottom

Copy link
Copy Markdown

@larsewi larsewi changed the title ENT-11988: Fixed bug where remote file copy always preserves source perms ENT-11988: Fixed bug where remote file copy always preserves source perms (3.21.x) Aug 20, 2025
@larsewi larsewi marked this pull request as ready for review August 20, 2025 10:55
@larsewi larsewi merged commit 373ab83 into cfengine:3.21.x Aug 20, 2025
49 of 50 checks passed
@larsewi larsewi deleted the preserve-3.21.x branch October 2, 2025 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants