aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-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;
}