syscall_fs: getmode change I missed
authorAlan Cox <alan@linux.intel.com>
Mon, 22 Feb 2016 23:45:01 +0000 (23:45 +0000)
committerAlan Cox <alan@linux.intel.com>
Mon, 22 Feb 2016 23:45:01 +0000 (23:45 +0000)
Kernel/syscall_fs.c

index c4dd91a..90e877a 100644 (file)
@@ -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);
        }