diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-02-22 11:17:01 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-02-22 11:17:01 +0000 |
commit | bd8f891e8ac6ec88bc72cd8c446b6ccba5750821 (patch) | |
tree | 723b2939e16ac792c2e59725551868561a79680d /winsup/cygwin/fhandler_proc.cc | |
parent | 570858c30fa6add591bf74907de4a7fb93312f20 (diff) | |
download | cygnal-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/fhandler_proc.cc')
-rw-r--r-- | winsup/cygwin/fhandler_proc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc index c08befea9..b2cf2caeb 100644 --- a/winsup/cygwin/fhandler_proc.cc +++ b/winsup/cygwin/fhandler_proc.cc @@ -963,7 +963,7 @@ format_proc_partitions (char *destbuf, size_t maxsize) InitializeObjectAttributes (&attr, &upath, OBJ_CASE_INSENSITIVE, dirhdl, NULL); status = NtOpenFile (&devhdl, READ_CONTROL | FILE_READ_DATA, &attr, &io, - wincap.shared (), 0); + FILE_SHARE_VALID_FLAGS, 0); if (!NT_SUCCESS (status)) { /* Retry with READ_CONTROL only for non-privileged users. This @@ -972,7 +972,7 @@ format_proc_partitions (char *destbuf, size_t maxsize) a non-privileged user shouldn't get read access to the drive layout information. */ status = NtOpenFile (&devhdl, READ_CONTROL, &attr, &io, - wincap.shared (), 0); + FILE_SHARE_VALID_FLAGS, 0); if (!NT_SUCCESS (status)) { debug_printf ("NtOpenFile(%s) %x", devname, status); |