2002-10-31 Pierre Humblet <pierre.humblet@ieee.org>

* fhandler.cc (fhandler_base::open): Verify pc isn't NULL.
This commit is contained in:
Pierre Humblet 2002-11-01 01:47:29 +00:00
parent cf157504a8
commit fe5ba95245
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-10-31 Pierre Humblet <pierre.humblet@ieee.org>
* fhandler.cc (fhandler_base::open): Verify pc isn't NULL.
2002-10-30 Christopher Faylor <cgf@redhat.com>
* include/cygwin/version.h: Bump DLL minor number.

View File

@ -442,7 +442,7 @@ fhandler_base::open (path_conv *pc, int flags, mode_t mode)
if (x == INVALID_HANDLE_VALUE)
{
if (pc->isdir () && !wincap.can_open_directories ())
if (!wincap.can_open_directories () && pc && pc->isdir ())
{
if (mode & (O_CREAT | O_EXCL) == (O_CREAT | O_EXCL))
set_errno (EEXIST);