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 + + * fhandler_disk_file.cc (fhandler_base::fstat_helper): Fix copy/paste + bug. + 2005-09-22 Christopher Faylor * 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 */