1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-21 15:45:02 +00:00

Fix Vflags abuse in fdescfs. There should be no functional changes.

Approved by:	rwatson (mentor)
This commit is contained in:
Edward Tomasz Napierala 2008-10-03 23:21:14 +00:00
parent 464119c422
commit a37d6ec935
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=183578

View File

@ -422,10 +422,8 @@ fdesc_getattr(ap)
if (error == 0) {
vap->va_type = IFTOVT(stb.st_mode);
vap->va_mode = stb.st_mode;
#define FDRX (VREAD|VEXEC)
if (vap->va_type == VDIR)
vap->va_mode &= ~((FDRX)|(FDRX>>3)|(FDRX>>6));
#undef FDRX
vap->va_mode &= ~(S_IRUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH);
vap->va_nlink = 1;
vap->va_flags = 0;
vap->va_bytes = stb.st_blocks * stb.st_blksize;