remove() may lead to race conditions

CorinaCorina Posts: 1
edited August 5 in C/C++test

Hello,
I'd use the function remove() in order to delete a file in my project.
I tried also with unlink() but I have the same violation:
Usage of functions prone to race is not allowed (SECURITY-19-2)
This file removal is in the main thread, so I can suppress that rule, but it will be nicer if I will found an alternative.
Does anyone knows if there exist a function for deleting a file that will not lead to race conditions?
Thanks

Sign In or Register to comment.