cvs commit: src/sys/kern vfs_vnops.c
Robert Watson
rwatson at FreeBSD.org
Sun Aug 3 15:45:10 UTC 2008
rwatson 2008-08-03 15:44:56 UTC
FreeBSD src repository
Modified files:
sys/kern vfs_vnops.c
Log:
SVN rev 181254 on 2008-08-03 15:44:56Z by rwatson
Remove broken code to replace st_mode value with ACCESSPERMS when
lstat(2) is called on symlinks -- this code appears never to have
worked. The PR this addresses suggests that the intended
original behavior is the right one, but as bde points out in the
PR comments, we do actually support storing a mode on symlinks,
so returning it seems reasonable.
This is consistent with Mac OS X, which despite documentation to
the contrary does return the mode set on a symlink, but not some
other platforms. The Single Unix Spec requires only that the
returned bits be "meaningful", which seems at best unhelpful as
advice goes.
PR: 25018
MFC after: 3 days
Revision Changes Path
1.262 +0 -5 src/sys/kern/vfs_vnops.c
More information about the cvs-src
mailing list