cvs commit: src/sys/kern vfs_vnops.c
Robert Watson
rwatson at FreeBSD.org
Sun Aug 31 21:27:11 UTC 2008
rwatson 2008-08-31 21:27:05 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_7)
sys/kern vfs_vnops.c
Log:
SVN rev 182574 on 2008-08-31 21:27:05Z by rwatson
Merge r181254 from head to stable/7:
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
Revision Changes Path
1.252.2.1 +0 -5 src/sys/kern/vfs_vnops.c
More information about the cvs-src
mailing list