python
python copied to clipboard
Keep config file permissions
The config files are updated by swapping with new temp file, but this cause loss of the permissions information. This PR fixes it by copying the permissions to the new file.