diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2003-06-05 04:58:58 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2003-06-05 04:58:58 +0000 |
| commit | bd38ab57a1c160e947cf096327fcc7a470ccb3e6 (patch) | |
| tree | 28440a873d3ab2ad069985d77e596df7b97ba5d1 | |
| parent | 52271f82d65caa9870aa3d9fcf7307fe504ae059 (diff) | |
Notes
| -rw-r--r-- | sys/ufs/ufs/ufs_extattr.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/ufs/ufs/ufs_extattr.c b/sys/ufs/ufs/ufs_extattr.c index cc5a9cc9e6e2..55fc2f6606e6 100644 --- a/sys/ufs/ufs/ufs_extattr.c +++ b/sys/ufs/ufs/ufs_extattr.c @@ -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) |
