aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-03-15 11:58:56 -0400
committerIan Moffett <ian@osmora.org>2024-03-15 11:58:56 -0400
commit5338af63451bee4a6ff100ea926368875c6b0a9d (patch)
tree1475f98ab0006776808a93795cda36cb4e986929 /sys/fs
parent49b44f6346df4e25a6e001e7d71534efc197a445 (diff)
kernel: initramfs: Fix vtype logic bug
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/initramfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/initramfs.c b/sys/fs/initramfs.c
index 817e6a1..2a501a1 100644
--- a/sys/fs/initramfs.c
+++ b/sys/fs/initramfs.c
@@ -103,7 +103,7 @@ vop_vget(struct vnode *parent, const char *name, struct vnode **vp)
return -ENOENT;
}
- if (hdr->type != TAR_TYPEFLAG_DIR) {
+ if (hdr->type == TAR_TYPEFLAG_DIR) {
vtype = VDIR;
}