From 6d4439ee2f90d54e21306767277d38c6453f0256 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sat, 27 Aug 2022 20:28:09 -0300 Subject: [PATCH] tmpfs: set error to 0 on read --- src/fs/tmpfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fs/tmpfs.c b/src/fs/tmpfs.c index 9ae20f49..fae24c69 100644 --- a/src/fs/tmpfs.c +++ b/src/fs/tmpfs.c @@ -62,6 +62,7 @@ static int tmpfs_read(int *error, vnode_t* node, void* buff, size_t count, size_ count = sizemax; memcpy(buff, node->fsdata + offset, count); + *error = 0; return count;