FreeBSD Bugzilla – Attachment 13082 Details for
Bug 25018
[libc] lstat(2) returns bogus permissions on symlinks
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 858 bytes, created by
mkamm
on 2001-02-11 22:50:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
mkamm
Created:
2001-02-11 22:50:02 UTC
Size:
858 bytes
patch
obsolete
>Index: vfs_vnops.c >=================================================================== >RCS file: /home/ncvs/src/sys/kern/vfs_vnops.c,v >retrieving revision 1.107 >diff -u -11 -r1.107 vfs_vnops.c >--- vfs_vnops.c 2001/01/24 12:35:50 1.107 >+++ vfs_vnops.c 2001/02/10 12:57:00 >@@ -479,25 +479,25 @@ > break; > case VBLK: > mode |= S_IFBLK; > break; > case VCHR: > mode |= S_IFCHR; > break; > case VLNK: > mode |= S_IFLNK; > /* This is a cosmetic change, symlinks do not have a mode. */ > if (vp->v_mount->mnt_flag & MNT_NOSYMFOLLOW) >- sb->st_mode &= ~ACCESSPERMS; /* 0000 */ >+ mode &= ~ACCESSPERMS; /* 0000 */ > else >- sb->st_mode |= ACCESSPERMS; /* 0777 */ >+ mode |= ACCESSPERMS; /* 0777 */ > break; > case VSOCK: > mode |= S_IFSOCK; > break; > case VFIFO: > mode |= S_IFIFO; > break; > default: > return (EBADF); > }; > sb->st_mode = mode;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25018
: 13082