Date: Sun, 31 Aug 2008 21:27:05 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_vnops.c Message-ID: <200808312127.m7VLRAZr017331@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808312127.m7VLRAZr017331>