Description of problem:
The /usr/libexec/chrony-helper script is not using the -r option of the read command, which means backslashes in the config file (e.g. in comments) are lost when the file is rewritten with the set-static-source command, and it could possibly lead to other issues (I wasn't able to identify any.)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. echo '# test \ test' >> /etc/chrony.conf
2. /usr/libexec/chrony-helper list-static-sources | /usr/libexec/chrony-helper set-static-sources
3. grep test.*comment /etc/chrony.conf
# test comment
# test\ comment
There are other errors in the script reported by shellcheck. We should fix them where possible.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.