o Remove unnecessary sanity check involving requested offset of extended

attribute read--the offset is required to be 0 by an earlier check,
  meaning that it will always be within the scope of the attribute data.
  This change should have no impact on executed code paths other than
  removing the unnecessary check: please report if any new failures
  start to occur as a result.

Obtained from:	TrustedBSD Project
This commit is contained in:
Robert Watson 2001-01-07 21:07:22 +00:00
parent 6f39832c71
commit 32e278a63d

View File

@ -586,11 +586,6 @@ ufs_extattr_get(struct vnode *vp, const char *name, struct uio *uio,
goto vopunlock_exit;
}
if (ueh.ueh_len < uio->uio_offset) {
error = 0;
goto vopunlock_exit;
}
/* allow for offset into the attr data */
uio->uio_offset = base_offset + sizeof(struct ufs_extattr_header);