summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2007-02-22 11:17:01 +0000
committerCorinna Vinschen <corinna@vinschen.de>2007-02-22 11:17:01 +0000
commitbd8f891e8ac6ec88bc72cd8c446b6ccba5750821 (patch)
tree723b2939e16ac792c2e59725551868561a79680d /winsup/cygwin/path.cc
parent570858c30fa6add591bf74907de4a7fb93312f20 (diff)
downloadcygnal-bd8f891e8ac6ec88bc72cd8c446b6ccba5750821.tar.gz
cygnal-bd8f891e8ac6ec88bc72cd8c446b6ccba5750821.tar.bz2
cygnal-bd8f891e8ac6ec88bc72cd8c446b6ccba5750821.zip
Throughout replace all usage of wincap.shared with the constant
FILE_SHARE_VALID_FLAGS. * fhandler.cc (fhandler_base::open_9x): Drop local variable shared. * wincap.cc: Remove shared member throughout. * wincap.h: Ditto.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 421cc35e9..68431276a 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -4283,7 +4283,8 @@ cwdstuff::set (const char *win32_cwd, const char *posix_cwd, bool doit)
if (wincap.can_open_directories ())
{
HANDLE h = CreateFile (win32_cwd, FILE_TRAVERSE,
- wincap.shared (), NULL, OPEN_EXISTING,
+ FILE_SHARE_VALID_FLAGS, NULL,
+ OPEN_EXISTING,
FILE_FLAG_BACKUP_SEMANTICS, NULL);
if (h == INVALID_HANDLE_VALUE)
{