summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/fs/fdescfs/fdesc_vnops.c5
-rw-r--r--sys/miscfs/fdesc/fdesc_vnops.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/fs/fdescfs/fdesc_vnops.c b/sys/fs/fdescfs/fdesc_vnops.c
index 17a38d5..958efa1 100644
--- a/sys/fs/fdescfs/fdesc_vnops.c
+++ b/sys/fs/fdescfs/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;
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