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

appliers/file_cp.py: changes the mode bits for the file only

This commit is contained in:
Valery Sinelnikov 2023-02-21 14:29:51 +04:00
parent abc3a3f609
commit 72c34a7475

View File

@ -100,6 +100,8 @@ class Files_cp:
log('W15', logdata)
def set_exe_file(self, targetFile, fromFile):
if not targetFile.is_file():
return
if Path(fromFile).suffix in self.exe_check.get_list_markers():
targetPath = str(targetFile.parent)
if targetPath or targetPath + '/' in self.exe_check.get_list_paths():