...
In rare cases, it is necessary to check for the existence of symbolic or hard links to ensure that a program is reading from an intended file and not a different file in another directory. In these cases, avoid creating a race condition when checking for the existence of symbolic links. (See VOID POS35-C. Avoid race conditions while checking for the existence of a symbolic link.)
...