* fhandler.cc (fhandler_base::raw_read): Only return EISDIR when we're really

trying to read a directory.
* sigproc.cc: Use "Static" where appropriate.
This commit is contained in:
Christopher Faylor
2006-07-13 20:56:24 +00:00
parent 94fe03664f
commit e8bf232949
3 changed files with 12 additions and 5 deletions

View File

@@ -262,7 +262,7 @@ fhandler_base::raw_read (void *ptr, size_t& ulen)
case ERROR_INVALID_FUNCTION:
case ERROR_INVALID_PARAMETER:
case ERROR_INVALID_HANDLE:
if (openflags & O_DIROPEN)
if (pc.isdir ())
{
set_errno (EISDIR);
bytes_read = (size_t) -1;