mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Report the correct length for symlink entries.
This commit is contained in:
parent
954c1f5807
commit
bc55355956
1 changed files with 1 additions and 1 deletions
|
|
@ -224,7 +224,7 @@ devfs_getattr(ap)
|
|||
vap->va_gid = de->de_gid;
|
||||
vap->va_mode = de->de_mode;
|
||||
if (vp->v_type == VLNK)
|
||||
vap->va_size = de->de_dirent->d_namlen;
|
||||
vap->va_size = strlen(de->de_symlink);
|
||||
else if (vp->v_type == VDIR)
|
||||
vap->va_size = vap->va_bytes = DEV_BSIZE;
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue