summaryrefslogtreecommitdiff
path: root/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'syscall.c')
-rw-r--r--syscall.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/syscall.c b/syscall.c
index 498078e..ce6e22d 100644
--- a/syscall.c
+++ b/syscall.c
@@ -274,6 +274,7 @@ sys_open(void)
fd->readable = 1;
fd->writeable = 0;
fd->ip = ip;
+ fd->off = 0;
cp->fds[ufd] = fd;
return ufd;