#865422 libsensors4 should ignore *~ files in /etc/sensors.d

#865422#5
Date:
2017-06-21 10:46:19 UTC
From:
To:
Dear Maintainer,

I was trying to tweak the lm_sensors configuration for my motherboard
but the changes I made had no effect. It turns out the changes I was
making to /etc/sensors.d/asus-z97a were overriden by the
/etc/sensors.d/asus-z97a~ backup created by emacs.

This is why packages that use .d directories either impose a specific
extension, like '.conf', limit the set of characters that can go in the
filename like exim4 (it only allows [[:alnum:]_-], see run_part() in
update-exim4.conf), or explicitly ban *~ like sudo does:

$ cat /etc/sudoers.d/README
[...]
# This will cause sudo to read and parse any files in the /etc/sudoers.d
# directory that do not end in '~' or contain a '.' character.
[...]

So libsensors4 should adopt one of these policies too.