
Duncan Coutts wrote:
No, it is the correct POSIX behaviour. You are thinking of lstat() which is what getSymbolicLinkStatus uses. The getFileStatus function calls stat().
Maybe this is a naming issue. In C I think of "lstat" as "stat" but don't follow link. If getSymbolicLinkStatus was instead called getFileStatusNoFollowLink I think there would be less chance of confusion. Cheers, Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- "I once worked for a company where as part of the BS5750 "Quality" process I attended a meeting where I was informed that it was Company Policy not to use free software. When I asked him for his written authorisation for me to remove X Windows from our Sun workstations, he backtracked." -- Phil Hunt