diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-02-22 14:17:01 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-02-22 14:17:01 +0300 |
commit | bd8f891e8ac6ec88bc72cd8c446b6ccba5750821 (patch) | |
tree | 723b2939e16ac792c2e59725551868561a79680d /winsup/cygwin/uinfo.cc | |
parent | 570858c30fa6add591bf74907de4a7fb93312f20 (diff) |
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/uinfo.cc')
-rw-r--r-- | winsup/cygwin/uinfo.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index 5fd2117dd..4064bc07c 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -1,6 +1,7 @@ /* uinfo.cc: user info (uid, gid, etc...) - Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Red Hat, Inc. + Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, + 2006, 2007 Red Hat, Inc. This file is part of Cygwin. @@ -532,7 +533,7 @@ pwdgrp::load (const char *posix_fname) } else { - HANDLE fh = CreateFile (pc, GENERIC_READ, wincap.shared (), NULL, + HANDLE fh = CreateFile (pc, GENERIC_READ, FILE_SHARE_VALID_FLAGS, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); if (fh == INVALID_HANDLE_VALUE) { |