diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-09-08 17:41:21 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-09-08 17:41:21 +0000 |
commit | 486564fb6ded48d9df817c05d9f6f5d32edf4479 (patch) | |
tree | e83eb586735440bbaf6a0cf33e0e35e46dc59344 /sys | |
parent | f2659bb02b244feb1e391d6118ac0dcb0ba6cf41 (diff) |
copyout() the correct size in sys_fhstatfs(), broken since 1.138.
ok millert@ blambert@ otto@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_syscalls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 554a3ae3353..c62696f00ab 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_syscalls.c,v 1.157 2009/09/02 19:05:44 fgsch Exp $ */ +/* $OpenBSD: vfs_syscalls.c,v 1.158 2009/09/08 17:41:20 miod Exp $ */ /* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */ /* @@ -1116,7 +1116,7 @@ sys_fhstat(struct proc *p, void *v, register_t *retval) int sys_fhstatfs(struct proc *p, void *v, register_t *retval) { - struct sys_fhstatfs_args /* + struct sys_fhstatfs_args /* { syscallarg(const fhandle_t *) fhp; syscallarg(struct statfs *) buf; } */ *uap = v; @@ -1145,7 +1145,7 @@ sys_fhstatfs(struct proc *p, void *v, register_t *retval) if ((error = VFS_STATFS(mp, sp, p)) != 0) return (error); sp->f_flags = mp->mnt_flag & MNT_VISFLAGMASK; - return (copyout(sp, SCARG(uap, buf), sizeof(sp))); + return (copyout(sp, SCARG(uap, buf), sizeof(*sp))); } /* |