From 5338af63451bee4a6ff100ea926368875c6b0a9d Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 15 Mar 2024 11:58:56 -0400 Subject: kernel: initramfs: Fix vtype logic bug Signed-off-by: Ian Moffett --- sys/fs/initramfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3