swtpm/src
Michal Privoznik c6b78f49f5 swtpm: Restore logging to stderr on log open failure
When opening a log file fails (--log file=/some/path) for
whatever reason the @logfd variable is left set to -1 (the retval
of open()). And due to how _logprintf() is written, the
subsequent attempt to log this failure (logprintf()) returns too
early not printing the useful error.

Therefore, restore the original (CONSOLE_LOGGING) value.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2022-12-02 11:08:46 -05:00
..
selinux selinux: Replace hardcoded install path with @prefix@ 2022-06-28 07:55:20 -04:00
swtpm swtpm: Restore logging to stderr on log open failure 2022-12-02 11:08:46 -05:00
swtpm_bios swtpm_bios: Use TPM2_ALG_SHA256 as parameter to TPM2_IncrementalSelfTest 2022-06-13 21:46:56 -04:00
swtpm_cert swtpm_cert: Test for NULL pointer returned by malloc 2022-05-25 18:54:58 -04:00
swtpm_ioctl swtpm: Implement CMD_LOCK_STORAGE to lock storage 2022-09-06 14:08:45 -04:00
swtpm_localca swtpm_localca: Add comment that failure to read optsfile is not an issue 2022-05-25 18:54:58 -04:00
swtpm_setup swtpm_setup: Configure swtpm to log to stdout/err if needed 2022-11-01 18:01:47 -04:00
utils swtpm: Move ARRAY_LEN and min #define's to swtpm_utils.h 2021-10-07 14:27:10 -04:00
Makefile.am Move swtpm_localca sources from samples/ to src/ 2021-07-25 08:52:13 -04:00