diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-09-22 17:53:38 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-09-22 17:53:38 +0000 |
commit | b30dbbe2c3df56a24a0523f58510cbfc39b80120 (patch) | |
tree | e1dbd48a82ef4e86485fd7f3dff5f91ce06ecc62 /winsup/cygwin/fhandler_disk_file.cc | |
parent | 378017d7c29a8620cb761d5aaff38a97d091bdb4 (diff) | |
download | cygnal-b30dbbe2c3df56a24a0523f58510cbfc39b80120.tar.gz cygnal-b30dbbe2c3df56a24a0523f58510cbfc39b80120.tar.bz2 cygnal-b30dbbe2c3df56a24a0523f58510cbfc39b80120.zip |
* 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.cc | 2 |
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 */ |