summaryrefslogtreecommitdiff
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2002-09-01 20:37:28 +0000
committerIan Dowse <iedowse@FreeBSD.org>2002-09-01 20:37:28 +0000
commit8f19eb88dff40008a1ef7524390e8a00f114781a (patch)
treeec81ad0e54c0e056c6214598679ec3e70c089905 /sys/kern/init_main.c
parent7460e5b18a312901c5127c0b658e0787d577e92d (diff)
Notes
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index b01e0c7212e6..f3860856c3a8 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -54,6 +54,7 @@
#include <sys/mac.h>
#include <sys/mount.h>
#include <sys/mutex.h>
+#include <sys/syscallsubr.h>
#include <sys/sysctl.h>
#include <sys/proc.h>
#include <sys/resourcevar.h>
@@ -529,7 +530,7 @@ start_init(void *dummy)
* since the fs will be read-only. But a NFS root
* might be ok. It is worth a shot.
*/
- error = vn_mkdir("/dev", 0700, UIO_SYSSPACE, td);
+ error = kern_mkdir(td, "/dev", UIO_SYSSPACE, 0700);
if (error == EEXIST)
error = 0;
if (error == 0)