From f4d76b9eb8dd1169f55aed0ee38d7042c9360567 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 22 Feb 2016 23:45:01 +0000 Subject: [PATCH] syscall_fs: getmode change I missed --- Kernel/syscall_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/syscall_fs.c b/Kernel/syscall_fs.c index c4dd91a7..90e877a2 100644 --- a/Kernel/syscall_fs.c +++ b/Kernel/syscall_fs.c @@ -36,7 +36,7 @@ arg_t _lseek(void) if ((ino = getinode(file)) == NULLINODE) return (-1); - if (getmode(ino) == F_PIPE) { + if (getmode(ino) == MODE_R(F_PIPE)) { udata.u_error = ESPIPE; return (-1); } -- 2.34.1