1
0
mirror of https://github.com/opencryptoki/opencryptoki.git synced 2026-10-27 06:12:56 +03:00
Files
Ingo Franzki 9a58a68e06 Fix coverty scan findings for stat/open
A stat() before open() is not required and can cause timing
ralted errors. The code can directly react on the result of
open(). Flag O_CREAT will create the file only if it is not
existent, so we don't need to know upfront if the file exists
already or not.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
2019-02-25 16:17:40 +01:00
..
2018-11-06 17:22:29 +01:00