CVSROOT: /cvs Module name: src Changes by: j...@cvs.openbsd.org 2016/09/30 04:53:11
Modified files: lib/libc/sys : read.2 sys/kern : vfs_vnops.c Log message: Make read(2) return EISDIR on directories. Years ago Theo made read(2) return 0 on directories, instead of dumping the directory content. Another behavior is allowed as an extension by POSIX, returning an EISDIR error, as used on a few other systems. This behavior is deemed more useful as it helps spotting errors. This implies that it might break some setups. Ports bulk builds by ajacoutot@ and naddy@, ok millert@ bluhm@ naddy@ deraadt@