summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_extattr.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-07-04 12:20:27 +0000
committerphk <phk@FreeBSD.org>2003-07-04 12:20:27 +0000
commit1e9246857202241772eba9f3150f907fb21e9458 (patch)
treea57fe0e97b69ccff60e4e8e8e43d587ac94c6a1f /sys/kern/vfs_extattr.c
parentdc3d80bafd420197c73aea986dd87516eac48b3a (diff)
downloadFreeBSD-src-1e9246857202241772eba9f3150f907fb21e9458.zip
FreeBSD-src-1e9246857202241772eba9f3150f907fb21e9458.tar.gz
Use the f_vnode field to tell which file descriptors have a vnode.
Diffstat (limited to 'sys/kern/vfs_extattr.c')
-rw-r--r--sys/kern/vfs_extattr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c
index 000fa0a..5d8b2d3 100644
--- a/sys/kern/vfs_extattr.c
+++ b/sys/kern/vfs_extattr.c
@@ -3442,7 +3442,7 @@ getvnode(fdp, fd, fpp)
if ((u_int)fd >= fdp->fd_nfiles ||
(fp = fdp->fd_ofiles[fd]) == NULL)
error = EBADF;
- else if (fp->f_type != DTYPE_VNODE && fp->f_type != DTYPE_FIFO) {
+ else if (fp->f_vnode == NULL) {
fp = NULL;
error = EINVAL;
} else {
@@ -3454,6 +3454,7 @@ getvnode(fdp, fd, fpp)
*fpp = fp;
return (error);
}
+
/*
* Get (NFS) file handle
*/
OpenPOWER on IntegriCloud