2002-12-19 Pierre Humblet <pierre.humblet@ieee.org>

* fhandler.cc (fhandler_base::open): Use "flags" rather than "mode"
	in Win9X directory code.
This commit is contained in:
Pierre Humblet 2002-12-20 01:48:22 +00:00
parent 388aa9941b
commit 3ace1da676
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-12-19 Pierre Humblet <pierre.humblet@ieee.org>
* fhandler.cc (fhandler_base::open): Use "flags" rather than "mode"
in Win9X directory code.
2002-12-19 Steve Osborn <bub@io.com>
* fhandler.h (line_edit_status): Add a new element.

View File

@ -463,9 +463,9 @@ fhandler_base::open (path_conv *pc, int flags, mode_t mode)
{
if (!wincap.can_open_directories () && pc && pc->isdir ())
{
if (mode & (O_CREAT | O_EXCL) == (O_CREAT | O_EXCL))
if (flags & (O_CREAT | O_EXCL) == (O_CREAT | O_EXCL))
set_errno (EEXIST);
else if (mode & (O_WRONLY | O_RDWR))
else if (flags & (O_WRONLY | O_RDWR))
set_errno (EISDIR);
else
set_nohandle (true);