mirror of
https://github.com/mudler/luet.git
synced 2025-09-05 09:10:43 +00:00
Don't write protect file if it is same
Add checksum check to config protect files Add test file Fixes #214
This commit is contained in:
@@ -90,8 +90,7 @@ func UntarProtect(src, dst string, sameOwner bool, protectedFiles []string, modi
|
||||
}
|
||||
|
||||
if sameOwner {
|
||||
// PRE: i have root privileged.
|
||||
|
||||
// we do have root permissions, so we can extract keeping the same permissions.
|
||||
replacerArchive := archive.ReplaceFileTarWrapper(in, mods)
|
||||
|
||||
opts := &archive.TarOptions{
|
||||
|
Reference in New Issue
Block a user