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>2014-01-22 19:45:29 +0400
committerCorinna Vinschen <corinna@vinschen.de>2014-01-22 19:45:29 +0400
commit42ce4498904ed1a561f63c03a1b7190baa40f988 (patch)
tree358b1fd6f1966d45832dcb71d1f2477b70503165
parente9286a873fdb10bfa624211ccdaef29a2c41e8a5 (diff)
* path.cc (etc::test_file_change): In case of NtQueryFullAttributesFile
returning an error, only return true if file actually exists.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/path.cc4
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index c58c1048d..fcfe757c1 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2014-01-22 Corinna Vinschen <corinna@vinschen.de>
+
+ * path.cc (etc::test_file_change): In case of NtQueryFullAttributesFile
+ returning an error, only return true if file actually exists.
+
2014-01-20 Corinna Vinschen <corinna@vinschen.de>
* include/cygwin/in6.h (struct ipv6_rt_hdr): Define.
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 047810f1d..1bf47b437 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -1,7 +1,7 @@
/* path.cc: path support.
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
- 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Red Hat, Inc.
+ 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Red Hat, Inc.
This file is part of Cygwin.
@@ -4645,7 +4645,7 @@ etc::test_file_change (int n)
status = NtQueryFullAttributesFile (&fn[n], &fnoi);
if (!NT_SUCCESS (status))
{
- res = true;
+ res = status != STATUS_OBJECT_NAME_NOT_FOUND;
memset (last_modified + n, 0, sizeof (last_modified[n]));
debug_printf ("NtQueryFullAttributesFile (%S) failed, %y",
fn[n].ObjectName, status);