Subject: Re: kern/642: lstat() returns wrong inode for symlink?
To: None <firstname.lastname@example.org>
From: Charles M. Hannum <email@example.com>
Date: 12/15/1994 07:45:54
root:188# ls -idl /sys /usr/src /src /src/sys
2 lrwxr-xr-x 1 root wheel 11 Nov 17 16:58 /sys@ -> usr/src/sys
2 lrwxr-xr-x 1 root wheel 4 Nov 17 16:29 /usr/src@ -> /src
2 drwxr-xr-x 19 root wheel 512 Dec 7 15:18 /src/
7552 drwxrwxr-x 25 root wheel 512 Nov 7 11:32 /src/sys/
Thus /sys and /src get the same dev/inode as the root directory!
In 4.4-Lite, symlinks appear to have the inode number and time stamps
of the directory they're in. This is allegedly a feature, though I'm
starting to think it's one of the silliest changes I've seen yet.