]> git.ipfire.org Git - thirdparty/chrony.git/commit
sys_linux: improve error message for failed PHC open 4.8
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 27 Aug 2025 10:22:48 +0000 (12:22 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 27 Aug 2025 12:05:31 +0000 (14:05 +0200)
commit9e8541e3c4c89bfb7a60b404f646fab57c69ce59
treefbaf7a8aaa69119653fa0ca9834ac0aa9b382e20
parente95d5a161d99c741ba31e9fa7ea2d758da8dae92
sys_linux: improve error message for failed PHC open

If the specified PHC device cannot be opened directly, an attempt is
made to open it as a network interface. When that fails, the error
"Could not open PHC of iface" is misleading the user that it was handled
only as an interface. Change the message to "Could not open PHC (of)" to
better cover both possibilities. Also remove the errno as it's not set
in all code paths.
sys_linux.c