diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-14 15:11:16 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-14 15:11:16 +0000 |
commit | a5d8ac97e2ec9ae3709c55e2703ade9225709528 (patch) | |
tree | f2b39b70bdc99a87351c6f1249b44de54845ec2a /sys/kern | |
parent | 9e87fffca854f92807879b7e400c422f9c1650af (diff) |
Isn't copy 'n paste a great invention?
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_syscalls.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 85ca4dd8c52..a6adf7c457c 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_syscalls.c,v 1.72 2001/05/14 14:55:48 art Exp $ */ +/* $OpenBSD: vfs_syscalls.c,v 1.73 2001/05/14 15:11:15 art Exp $ */ /* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */ /* @@ -1016,7 +1016,6 @@ sys_fhopen(p, v, retval) struct mount *mp; struct ucred *cred = p->p_ucred; int flags; - struct file *nfp; int type, indx, error=0; struct flock lf; struct vattr va; @@ -1034,9 +1033,9 @@ sys_fhopen(p, v, retval) if ((flags & O_CREAT)) return (EINVAL); - if ((error = falloc(p, &nfp, &indx)) != 0) + if ((error = falloc(p, &fp, &indx)) != 0) return (error); - fp = nfp; + if ((error = copyin(SCARG(uap, fhp), &fh, sizeof(fhandle_t))) != 0) goto bad; |