From f9c1ceb309a85226b950c05e31f0f3cb1614dd4d Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 12 Jul 2022 22:25:46 +0200 Subject: remove the incorrect OPEN_CREATE guards in fs drivers --- src/user/fs/misc.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/user/fs/misc.c') diff --git a/src/user/fs/misc.c b/src/user/fs/misc.c index b3e1a2c..fa1115d 100644 --- a/src/user/fs/misc.c +++ b/src/user/fs/misc.c @@ -104,11 +104,6 @@ void fs_dir_inject(const char *path) { { /* opening a directory that we're injecting into */ - if (res.flags & OPEN_CREATE) { - _syscall_fs_respond(NULL, -1, 0); - break; - } - data = malloc(sizeof *data); data->delegate = _syscall_open(buf, res.len, res.flags); data->inject = path + res.len; -- cgit v1.2.3