summaryrefslogtreecommitdiff
path: root/src/user/fs
diff options
context:
space:
mode:
authordzwdz2022-07-12 22:25:46 +0200
committerdzwdz2022-07-12 22:25:46 +0200
commitf9c1ceb309a85226b950c05e31f0f3cb1614dd4d (patch)
treef837f6f86a6934ae74c69c381b8408c3e6a39203 /src/user/fs
parenta854f2979a86f76bd6405041bf5227257548acf3 (diff)
remove the incorrect OPEN_CREATE guards in fs drivers
Diffstat (limited to 'src/user/fs')
-rw-r--r--src/user/fs/misc.c5
-rw-r--r--src/user/fs/tar.c4
2 files changed, 0 insertions, 9 deletions
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;
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;