Using a predictible temporary file name in /tmp is a security risk. It
could be used to overwrite or delete arbitrary files through a symlink,
possibly as root when running for instance "sudo make install".
Use "-o /dev/null" instead, which is supported by at least clang and
gcc.
Fixes: 68bda21952
LIBICONV is already defined in the top level Makefile, so it does not
need to be redefined in prog/sensors/Module.mk.
In addition the latter version causes a.out file to be created when
running make targets, even "make clean".
Fixes: 68bda21952
The lm-sensors library is widely used in various software, which could
be run in VMs where HWMON support may be absent (e.g. cloud kernels in
Debian). To avoid a confusing "/sys: No sensors at /sys/class/hwmon" on
the console or in the logs, only emit the message if the user specifies
an alternative path through SENSORS_SYSFS_ROOT. This behavior mirrors
what is done for the "Not a sysfs mount" message.
Fixes: 89548dab2a ("Add SENSORS_SYSFS_ROOT environment support")