I'm not sure of the prevailing myriad so-called standards say or imply about this case (and I don't have any of the mat hand right now anyway), but any sane Unix hacker will tell you that you are just wrong to expect that.
- lstat follows symlink when file's name ends in a slash Eric Hanchrow
- Roland McGrath