aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_descrip.c
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>1999-11-18 08:08:28 +0000
committerMatthew Dillon <dillon@FreeBSD.org>1999-11-18 08:08:28 +0000
commit151f7a5d8a6908e26443e47e036dbca22dc70be1 (patch)
tree496b225d0701c8b70b5158e0dcf01404715f17bd /sys/kern/kern_descrip.c
parent50c15101a968f582f1b501340264c75ee64b165d (diff)
downloadsrc-151f7a5d8a6908e26443e47e036dbca22dc70be1.tar.gz
src-151f7a5d8a6908e26443e47e036dbca22dc70be1.zip
Notes
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r--sys/kern/kern_descrip.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index a0daf53f9430..a659aee85845 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -541,9 +541,10 @@ ofstat(p, uap)
(fp = fdp->fd_ofiles[uap->fd]) == NULL)
return (EBADF);
error = fo_stat(fp, &ub, p);
- cvtstat(&ub, &oub);
- if (error == 0)
+ if (error == 0) {
+ cvtstat(&ub, &oub);
error = copyout((caddr_t)&oub, (caddr_t)uap->sb, sizeof (oub));
+ }
return (error);
}
#endif /* COMPAT_43 || COMPAT_SUNOS */