1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

appliers/file_cp.py: fix file copy

This commit is contained in:
Valery Sinelnikov 2022-12-13 18:40:15 +04:00
parent 2c71b5e53a
commit 1bf898f1d0

View File

@ -111,7 +111,7 @@ class Files_cp:
try:
targetFile = self.get_target_file(self.targetPath, fromFile)
if not targetFile and not targetFile.exists():
if targetFile and not targetFile.exists():
self.copy_target_file(targetFile, fromFile)
if self.username:
shutil.chown(targetFile, self.username)