summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-09-22 17:53:38 +0000
committerCorinna Vinschen <corinna@vinschen.de>2005-09-22 17:53:38 +0000
commitb30dbbe2c3df56a24a0523f58510cbfc39b80120 (patch)
treee1dbd48a82ef4e86485fd7f3dff5f91ce06ecc62
parent378017d7c29a8620cb761d5aaff38a97d091bdb4 (diff)
downloadcygnal-b30dbbe2c3df56a24a0523f58510cbfc39b80120.tar.gz
cygnal-b30dbbe2c3df56a24a0523f58510cbfc39b80120.tar.bz2
cygnal-b30dbbe2c3df56a24a0523f58510cbfc39b80120.zip
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Fix copy/paste
bug.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index e9018471e..096304ed9 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2005-09-22 Corinna Vinschen <corinna@vinschen.de>
+
+ * fhandler_disk_file.cc (fhandler_base::fstat_helper): Fix copy/paste
+ bug.
+
2005-09-22 Christopher Faylor <cgf@timesys.com>
* strace.cc (strace::vsprntf): Avoid accessing myself->pid if !myself.
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 */