From c6424fbc55298399f133ca1ede11e1f0b4a5c824 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 29 Jul 2022 16:16:24 +0200 Subject: use a shared fs_normslice() function to handle offsets --- src/user/lib/fs/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/user/lib') 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); -- cgit v1.2.3