vfs: remove hack from vfs_open
This commit is contained in:
parent
30774dd58a
commit
5217f9b199
1 changed files with 0 additions and 4 deletions
4
fs/vfs.c
4
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue