Steps to reproduce:
1. Create two directories (let’s say dir A and dir B).
2. In dir A create two files (say, file 1 and file 2). File 1 is linked to file 2.
3. In dir B create two different files but give them the same name. File 1 is also linked to file 2.
4. Change the current working directory to one of the previously created directories, let’s say dir A.
5. Open dir A/file 1.
6. Try to open dir B/file 2. This step will fail.