summaryrefslogtreecommitdiff
path: root/src/sys/os/vfs_namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/os/vfs_namei.c')
-rw-r--r--src/sys/os/vfs_namei.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sys/os/vfs_namei.c b/src/sys/os/vfs_namei.c
index d417db8..013c0ea 100644
--- a/src/sys/os/vfs_namei.c
+++ b/src/sys/os/vfs_namei.c
@@ -114,6 +114,8 @@ namei(struct nameidata *ndp)
if (error == 0) {
return 0;
}
+
+ return -ENOENT;
}
@@ -149,6 +151,7 @@ namei(struct nameidata *ndp)
nd_create.path = namebuf;
create.ndp = &nd_create;
+ create.vtype = VTYPE_FILE;
error = vops->create(&create);
if (error < 0)
return error;