summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>2001-05-14 15:11:15 +0000
committerart <art@openbsd.org>2001-05-14 15:11:15 +0000
commit3fcc9d7a03d81b7f6a1ae43f07eff7a2b7958586 (patch)
tree7fc5bd9db4becba3cfe8e344ca9172a0dd7e0f60
parentRemove some unnecessary code + some random cleanup. (diff)
downloadwireguard-openbsd-3fcc9d7a03d81b7f6a1ae43f07eff7a2b7958586.tar.xz
wireguard-openbsd-3fcc9d7a03d81b7f6a1ae43f07eff7a2b7958586.zip
Isn't copy 'n paste a great invention?
-rw-r--r--sys/kern/vfs_syscalls.c7
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;