diff options
author | Egor Duda <deo@logos-m.ru> | 2001-06-14 22:21:17 +0400 |
---|---|---|
committer | Egor Duda <deo@logos-m.ru> | 2001-06-14 22:21:17 +0400 |
commit | 96d95e535ec7ab782ea5e29555dbfe3a4d371555 (patch) | |
tree | b747126d1f11de8858b91fb90f240d4adea4d28f /winsup/cygwin/syscalls.cc | |
parent | c66261a731cd96a10e9f0d9ba51b68a36d33e6fc (diff) |
* fhandler.cc (fhandler_base::open): Set win32 access flags
to 0, when requested.
* fhandler.h: New status flag FH_QUERYOPEN.
(fhandler::get_query_open): New function.
(fhandler::set_query_open): Ditto.
* syscalls.cc (stat_worker): Request query-only open mode.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index e6e48f3fc..4e96ccc1e 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -1048,6 +1048,7 @@ stat_worker (const char *caller, const char *name, struct stat *buf, && dtype != DRIVE_NO_ROOT_DIR && dtype != DRIVE_UNKNOWN))) { + fh.set_query_open (TRUE); oret = fh.open (real_path, O_RDONLY | O_BINARY | O_DIROPEN | (nofollow ? O_NOSYMLINK : 0), 0); /* Check a special case here. If ntsec is ON it happens |