summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-06-24 17:14:28 +0000
committerrwatson <rwatson@FreeBSD.org>2004-06-24 17:14:28 +0000
commit96d33374ffde630a178d08a224a333390265745b (patch)
tree4de06255c772a6b5b6f78cff9a55653a4b4b438b /sys
parent6014d4752219bea227cf3e45e7fbf7a7d705378c (diff)
downloadFreeBSD-src-96d33374ffde630a178d08a224a333390265745b.zip
FreeBSD-src-96d33374ffde630a178d08a224a333390265745b.tar.gz
Remove temporary API bandage that allowed applications speaking the
older API to list attributes on a file (zero-length attribute name) to function. extattr_list_*() are now the only available APIs to use when listing attributes.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_extattr.c9
-rw-r--r--sys/kern/vfs_syscalls.c9
2 files changed, 0 insertions, 18 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c
index 82571bc..55b1a3e 100644
--- a/sys/kern/vfs_extattr.c
+++ b/sys/kern/vfs_extattr.c
@@ -4398,15 +4398,6 @@ extattr_get_vp(struct vnode *vp, int attrnamespace, const char *attrname,
size_t size, *sizep;
int error;
- /*
- * XXX: Temporary API compatibility for applications that know
- * about this hack ("" means list), but haven't been updated
- * for the extattr_list_*() system calls yet. This will go
- * away for FreeBSD 5.3.
- */
- if (strlen(attrname) == 0)
- return (extattr_list_vp(vp, attrnamespace, data, nbytes, td));
-
VOP_LEASE(vp, td, td->td_ucred, LEASE_READ);
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td);
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 82571bc..55b1a3e 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -4398,15 +4398,6 @@ extattr_get_vp(struct vnode *vp, int attrnamespace, const char *attrname,
size_t size, *sizep;
int error;
- /*
- * XXX: Temporary API compatibility for applications that know
- * about this hack ("" means list), but haven't been updated
- * for the extattr_list_*() system calls yet. This will go
- * away for FreeBSD 5.3.
- */
- if (strlen(attrname) == 0)
- return (extattr_list_vp(vp, attrnamespace, data, nbytes, td));
-
VOP_LEASE(vp, td, td->td_ucred, LEASE_READ);
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td);
OpenPOWER on IntegriCloud