Don't special-case handling of the empty string in the UFS1
extended attribute retrieval code: it's no longer special-cased, and is caught by the normal UFS1 EA validity checks (and, in fact, returns the same error, EINVAL). Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
This commit is contained in:
parent
8d5437ca29
commit
5fd55dbf85
@ -839,11 +839,8 @@ ufs_extattr_get(struct vnode *vp, int attrnamespace, const char *name,
|
||||
if (!(ump->um_extattr.uepm_flags & UFS_EXTATTR_UEPM_STARTED))
|
||||
return (EOPNOTSUPP);
|
||||
|
||||
if (strlen(name) == 0) {
|
||||
/* XXX retrieve attribute lists. */
|
||||
/* XXX should probably be checking for name == NULL? */
|
||||
if (strlen(name) == 0)
|
||||
return (EINVAL);
|
||||
}
|
||||
|
||||
error = extattr_check_cred(vp, attrnamespace, cred, td, IREAD);
|
||||
if (error)
|
||||
|
Loading…
Reference in New Issue
Block a user