From 5217f9b199c454e77aa2f03c9c3628fab947a553 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Tue, 30 Jan 2024 22:42:35 -0500 Subject: [PATCH] vfs: remove hack from `vfs_open` --- fs/vfs.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/fs/vfs.c b/fs/vfs.c index dd6365c..7facecf 100644 --- a/fs/vfs.c +++ b/fs/vfs.c @@ -58,10 +58,6 @@ struct file *vfs_open(const char *pathname, int *err) } memset(file, 0, sizeof(struct file)); - /* terrible temporary hack */ - if (pathname == NULL && (uintptr_t)err == 0x4) - return file; - /* start at root */ struct fs *fs = rootfs; struct vnode *cur_vnode = fs->root;