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:
parent
388aa9941b
commit
3ace1da676
|
@ -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>
|
2002-12-19 Steve Osborn <bub@io.com>
|
||||||
|
|
||||||
* fhandler.h (line_edit_status): Add a new element.
|
* fhandler.h (line_edit_status): Add a new element.
|
||||||
|
|
|
@ -463,9 +463,9 @@ fhandler_base::open (path_conv *pc, int flags, mode_t mode)
|
||||||
{
|
{
|
||||||
if (!wincap.can_open_directories () && pc && pc->isdir ())
|
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);
|
set_errno (EEXIST);
|
||||||
else if (mode & (O_WRONLY | O_RDWR))
|
else if (flags & (O_WRONLY | O_RDWR))
|
||||||
set_errno (EISDIR);
|
set_errno (EISDIR);
|
||||||
else
|
else
|
||||||
set_nohandle (true);
|
set_nohandle (true);
|
||||||
|
|
Loading…
Reference in New Issue