linux-nvme / nvme-cli

NVMe management command line interface.

Home Page:https://nvmexpress.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix code scanning alert - Time-of-check time-of-use filesystem race condition

igaw opened this issue · comments

rmdir(strMainDirName);

Often it is necessary to check the state of a file before using it. These checks usually take a file name to be checked, and if the check returns positively, then the file is opened or otherwise operated upon.

Tracking issue for:

This issue also can be closed.