diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-01-15 11:39:37 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-01-15 11:39:37 +0000 |
commit | 3fcbb9c740612e7de0b3978b1d05394fb940567a (patch) | |
tree | 83f7183ccbf9fe0c472f8205cf2bea0280cc09a1 | |
parent | 937acb2fbc313e3fb0808a79dc96f1e8c059b9a2 (diff) |
Unbreak UNION code.
-rw-r--r-- | sys/compat/netbsd/netbsd_getdents.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/compat/netbsd/netbsd_getdents.c b/sys/compat/netbsd/netbsd_getdents.c index af0da672d85..d47ccf0b91a 100644 --- a/sys/compat/netbsd/netbsd_getdents.c +++ b/sys/compat/netbsd/netbsd_getdents.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netbsd_getdents.c,v 1.2 1999/09/15 21:00:10 kstailey Exp $ */ +/* $OpenBSD: netbsd_getdents.c,v 1.3 2001/01/15 11:39:36 art Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -47,6 +47,7 @@ #include <sys/proc.h> #include <sys/uio.h> #include <sys/vnode.h> +#include <sys/stat.h> #include <compat/netbsd/netbsd_signal.h> #include <compat/netbsd/netbsd_syscallargs.h> @@ -117,7 +118,7 @@ unionread: vput(lvp); return (error); } - VOP_UNLOCK(lvp, 0); + VOP_UNLOCK(lvp, 0, p); fp->f_data = (caddr_t) lvp; fp->f_offset = 0; error = vn_close(vp, FREAD, fp->f_cred, p); |