summaryrefslogtreecommitdiff
path: root/src/init/tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/init/tar.c')
-rw-r--r--src/init/tar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/init/tar.c b/src/init/tar.c
index c289edc..ce8c066 100644
--- a/src/init/tar.c
+++ b/src/init/tar.c
@@ -21,6 +21,10 @@ 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);
+ break;
+ }
_syscall_fs_respond(NULL, tar_open(buf, res.len, base, ~0));
break;