From a4280c4dc80be33d87384c6b8a10bf2917829229 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 7 Sep 2018 02:28:19 +0100 Subject: [PATCH] inode: fix incorrect socket write return Telnet now works again --- Kernel/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/inode.c b/Kernel/inode.c index b98a738f..7d7805bc 100644 --- a/Kernel/inode.c +++ b/Kernel/inode.c @@ -170,7 +170,7 @@ void writei(regptr inoptr ino, uint8_t flag) #ifdef CONFIG_NET case MODE_R(F_SOCK): - udata.u_count = sock_write(ino, flag); + udata.u_done = sock_write(ino, flag); break; #endif case MODE_R(F_PIPE): -- 2.34.1