From 023a3faeb13503ee51d9c4ceb4ec27fce5b538f4 Mon Sep 17 00:00:00 2001 From: Gavin Hayes Date: Mon, 17 Oct 2022 15:10:34 -0400 Subject: [PATCH] nt lseek, error with ESPIPE when attempting on socket --- libc/calls/lseek-nt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc/calls/lseek-nt.c b/libc/calls/lseek-nt.c index ca5c3cbf5..089c61c29 100644 --- a/libc/calls/lseek-nt.c +++ b/libc/calls/lseek-nt.c @@ -34,6 +34,8 @@ textwindows int64_t sys_lseek_nt(int fd, int64_t offset, int whence) { } else { return espipe(); } + } else if (__isfdkind(fd, kFdSocket)) { + return espipe(); } else { return ebadf(); }