commit | 49ac2bdc5bf139c4588f9c26470a33ab40433018 | [log] [tgz] |
---|---|---|
author | Stefan Berger <stefanb@linux.ibm.com> | Tue May 10 22:28:30 2022 -0400 |
committer | Stefan Berger <stefanb@us.ibm.com> | Wed May 11 07:37:38 2022 -0400 |
tree | 0d747dd17bc938332f0e629962aae4ab23a5e41c | |
parent | 1a300e26dd8436dbb5c23e25f5599a1ddba3da05 [diff] |
swtpm: Avoid locking directory multiple times Commit 2d3deaef29 forgot to move the check for whether the lock file has already been opened into the new function opening the lock file and there- fore the lock file is now opened whenever swtpm gets a PTM_INIT. This fix prevents the reopening of the lockfile if it has already been opened. Otherwise many PTM_INIT's will lead to failure since no more files can be opened. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>