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/tar.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/user/fs/tar.c') diff --git a/src/user/fs/tar.c b/src/user/fs/tar.c index 4b4a9a3..60deccd 100644 --- a/src/user/fs/tar.c +++ b/src/user/fs/tar.c @@ -22,10 +22,6 @@ void tar_driver(void *base) { while (!_syscall_fs_wait(buf, BUF_SIZE, &res)) { switch (res.op) { case VFSOP_OPEN: - if (res.flags & OPEN_CREATE) { - _syscall_fs_respond(NULL, -1, 0); - break; - } ptr = tar_open(buf, res.len, base, ~0); _syscall_fs_respond(ptr, ptr ? 0 : -1, 0); break; -- cgit v1.2.3