]> git.ipfire.org Git - thirdparty/kmod.git/commit
modprobe: Write error messages to syslog if stderr is unavailable
authorQuentin Armitage <quentin@armitage.org.uk>
Fri, 19 Nov 2021 18:33:49 +0000 (18:33 +0000)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Thu, 30 Jun 2022 16:59:38 +0000 (09:59 -0700)
commitc1fb98a30dae051ab69d23624d1e062d0527527e
tree2e5ade5bcb4e314804c2d9a9394a167d2aeb4d93
parent09ad8605520c87e799cb89e2bcdf2f36e21f77ba
modprobe: Write error messages to syslog if stderr is unavailable

The man page modprobe(8) states for the --syslog option:
"This is also automatically enabled when stderr is unavailable."
but it wasn't happening.

This commit now makes modprobe write to syslog if stderr is closed.
tools/modprobe.c