Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-09-22 21:53:38 +0400
committerCorinna Vinschen <corinna@vinschen.de>2005-09-22 21:53:38 +0400
commitb30dbbe2c3df56a24a0523f58510cbfc39b80120 (patch)
treee1dbd48a82ef4e86485fd7f3dff5f91ce06ecc62 /winsup/cygwin/fhandler_disk_file.cc
parent378017d7c29a8620cb761d5aaff38a97d091bdb4 (diff)
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Fix copy/paste
bug.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc
index 6c4ff04ec..4682184f1 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -395,7 +395,7 @@ fhandler_base::fstat_helper (struct __stat64 *buf,
{
buf->st_mode |= STD_RBITS;
- if (::has_attribute (dwFileAttributes, FILE_ATTRIBUTE_READONLY)
+ if (!::has_attribute (dwFileAttributes, FILE_ATTRIBUTE_READONLY)
&& !pc.issymlink ())
buf->st_mode |= STD_WBITS;
/* | S_IWGRP | S_IWOTH; we don't give write to group etc */