summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2012-09-10 11:11:01 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2012-09-10 11:11:01 +0000
commit2a1c47f2d9f2d1433ae48f64ec368b211b6786e2 (patch)
tree00a3a03b9a29a5e072374ac5b732685089b0c708 /sys/kern
parentcf8106e329fdb32752921ec5380a309d42f22134 (diff)
Cleanup VFS mount string handling:
- Avoid using copyinstr() without checking the return value. - sys_mount() has already copied the path in, so pass this to the filesystem mount code so that it does not have to copy it in again. - Avoid copyinstr()/bzero() dance when we can simply bzero() and strlcpy(). ok krw@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_syscalls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index a408f1dded4..6ec5e840041 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_syscalls.c,v 1.188 2012/09/10 02:21:56 deraadt Exp $ */
+/* $OpenBSD: vfs_syscalls.c,v 1.189 2012/09/10 11:10:59 jsing Exp $ */
/* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */
/*
@@ -269,7 +269,7 @@ update:
/*
* Mount the filesystem.
*/
- error = VFS_MOUNT(mp, SCARG(uap, path), SCARG(uap, data), &nd, p);
+ error = VFS_MOUNT(mp, fspath, SCARG(uap, data), &nd, p);
if (!error) {
mp->mnt_stat.f_ctime = time_second;
}