Re: [dpdk-dev] [PATCH v2] examples/vhost_blk: fix the TOCTOU

2020-02-13 Thread Maxime Coquelin
On 2/11/20 10:33 AM, Jin Yu wrote: > Fix the time of check time of use warning in example code. > Ignore the errno of unlink failure. There are two situations. > The first one is that file doesn't exist the unlink fails and > it's ok to ignore. The second one is that unlink fails to remove > fil

[dpdk-dev] [PATCH v2] examples/vhost_blk: fix the TOCTOU

2020-02-11 Thread Jin Yu
Fix the time of check time of use warning in example code. Ignore the errno of unlink failure. There are two situations. The first one is that file doesn't exist the unlink fails and it's ok to ignore. The second one is that unlink fails to remove file but the next bind() would fail too. Coverity

[dpdk-dev] [PATCH v2] examples/vhost_blk: fix the TOCTOU

2020-02-10 Thread Jin Yu
Fix the time of check time of use warning in example code. Ignore the errno of unlink failure. There are two situations. The first one is that file doesn't exist the unlink fails and it's ok to ignore. The second one is that unlink fails to remove file but the next bind() would fail too. Coverity