tpm2-pk11 icon indicating copy to clipboard operation
tpm2-pk11 copied to clipboard

ssh client will write log file in relative path from $PWD

Open liuqun opened this issue 6 years ago • 0 comments

When relative log_file path is configured in .tpm2/config, for example, add the following settings into ~/.tpm2/config:

log-level 3
log libtpm2-pk11.log

Each ssh client will write it's own log file in $PWD. Is this a feature or a bug?

https://github.com/irtimmer/tpm2-pk11/blob/490c116e276fbcf66fe94e860efd2916b443df08/src/config.c#L62-L64

Maybe we should detect the style of configured log file path, and add a prefix such as "$HOME/.tpm2/" when relative path is configured: https://github.com/irtimmer/tpm2-pk11/blob/260b11638edf03e51ebe7787abc5a99276b553d7/src/log.c#L31-L41

liuqun avatar Feb 12 '18 06:02 liuqun