From: Alan Cox Date: Mon, 22 Feb 2016 23:45:01 +0000 (+0000) Subject: syscall_fs: getmode change I missed X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=f4d76b9eb8dd1169f55aed0ee38d7042c9360567;p=FUZIX.git syscall_fs: getmode change I missed --- 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); }