summaryrefslogtreecommitdiff
path: root/src/user/lib
diff options
context:
space:
mode:
authordzwdz2022-07-29 16:16:24 +0200
committerdzwdz2022-07-29 16:16:24 +0200
commitc6424fbc55298399f133ca1ede11e1f0b4a5c824 (patch)
treed8dd1c160a7184a99ea3c72779dce95b4bbee692 /src/user/lib
parenta0b16620e1699504e8d21a481e019dec40d7ee1b (diff)
use a shared fs_normslice() function to handle offsets
Diffstat (limited to 'src/user/lib')
-rw-r--r--src/user/lib/fs/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/user/lib/fs/misc.c b/src/user/lib/fs/misc.c
index 3a732af..32464b3 100644
--- a/src/user/lib/fs/misc.c
+++ b/src/user/lib/fs/misc.c
@@ -132,7 +132,7 @@ void fs_dir_inject(const char *path) {
break;
case VFSOP_READ:
- if (res.offset > 0) _syscall_fs_respond(NULL, 0, 0); // TODO working offsets
+ if (res.offset != 0) _syscall_fs_respond(NULL, -1, 0); // TODO working offsets
int out_len = data->inject_len;
memcpy(buf, data->inject, out_len);