Detecting symbolic links on a Samba share
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Howdy An app I have inherited at work seems to have a strange problem, but one that may occur (it already has once) While the app is a Windows-only program, people with unix/linux can share a folder using Samba and that can be mapped into a Windows users computer. It is also possible that a unix user has a symbolic link in a folder that points back to a parent directory, creating a looping directory structure. On unix, I could detect this pretty easily using stat(), however on Windows, these symbolic links appear exectly the same as the original file/folder, making it possible for the app to get caught in a never ending cycle of directory scanning. Is there any way to pick this up in windows? Cheers