diff options
author | Christopher Faylor <me@cgf.cx> | 2006-07-13 20:56:24 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2006-07-13 20:56:24 +0000 |
commit | e8bf2329496eb61558898c987b1a245d6f5ff40f (patch) | |
tree | e1f1d488086b5b85134a94126d713252b73d86c8 /winsup/cygwin/fhandler.cc | |
parent | 94fe03664f7480ea1bb4ff63f12a337e69a424bd (diff) | |
download | cygnal-e8bf2329496eb61558898c987b1a245d6f5ff40f.tar.gz cygnal-e8bf2329496eb61558898c987b1a245d6f5ff40f.tar.bz2 cygnal-e8bf2329496eb61558898c987b1a245d6f5ff40f.zip |
* fhandler.cc (fhandler_base::raw_read): Only return EISDIR when we're really
trying to read a directory.
* sigproc.cc: Use "Static" where appropriate.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r-- | winsup/cygwin/fhandler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index 50bde0064..539c2e8fa 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -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; |