summaryrefslogtreecommitdiffstats
path: root/sys/miscfs
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-11-08 03:36:29 +0000
committerpeter <peter@FreeBSD.org>1999-11-08 03:36:29 +0000
commit4cd2b5b992572f267f8046fd398a4bc00fdb562e (patch)
tree97c51fd8aefc67bc692d5c9293b5392ab0aedfc0 /sys/miscfs
parentcf619ff4fe4fc80b4fd4a9762924a44b0f6a5612 (diff)
downloadFreeBSD-src-4cd2b5b992572f267f8046fd398a4bc00fdb562e.zip
FreeBSD-src-4cd2b5b992572f267f8046fd398a4bc00fdb562e.tar.gz
Update for fileops.fo_stat() addition. Note, this would panic if
it saw a DTYPE_PIPE. This isn't quite right but should stop a crash.
Diffstat (limited to 'sys/miscfs')
-rw-r--r--sys/miscfs/fdesc/fdesc_vnops.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/miscfs/fdesc/fdesc_vnops.c b/sys/miscfs/fdesc/fdesc_vnops.c
index 17a38d5..958efa1 100644
--- a/sys/miscfs/fdesc/fdesc_vnops.c
+++ b/sys/miscfs/fdesc/fdesc_vnops.c
@@ -382,11 +382,12 @@ fdesc_attr(fd, vap, cred, p)
}
break;
+ case DTYPE_PIPE:
case DTYPE_SOCKET:
- error = soo_stat((struct socket *)fp->f_data, &stb);
+ error = fo_stat(fp, &stb, p);
if (error == 0) {
vattr_null(vap);
- vap->va_type = VSOCK;
+ vap->va_type = VSOCK; /* XXX pipe? */
vap->va_mode = stb.st_mode;
vap->va_nlink = stb.st_nlink;
vap->va_uid = stb.st_uid;
OpenPOWER on IntegriCloud