Merge pull request #20402 from cachedout/issue_19643

Copy perms of destination file when backing up
This commit is contained in:
Joseph Hall 2015-02-05 12:08:30 -07:00
commit cf2bc2d9c0

View File

@ -606,6 +606,7 @@ def backup_minion(path, bkroot):
shutil.copyfile(path, bkpath)
if not salt.utils.is_windows():
os.chown(bkpath, fstat.st_uid, fstat.st_gid)
os.chmod(bkpath, fstat.st_mode)
def path_join(*parts):