[PATCH] bad error codes on directory reads in /proc

From: Matt Kraai (kraai@alumni.carnegiemellon.edu)
Date: Thu Jun 22 2000 - 19:35:06 EST


Howdy,

As far as I can tell, every filesystem but proc has an error code of
EISDIR when someone performs a read(2) on a directory. The manpage for
read(2) says that the error code should be EISDIR when called on a
directory. For directories in proc, it is EINVAL instead. The attached
patch against 2.4.0-test1 makes proc conform.

Matt

-- 
Matt Kraai  <kraai@alumni.carnegiemellon.edu>


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:25 EST