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:
authorChristopher Faylor <me@cgf.cx>2012-04-06 08:40:49 +0400
committerChristopher Faylor <me@cgf.cx>2012-04-06 08:40:49 +0400
commit25fdb1ded1ea05613140927d83f8e3da531bd6c5 (patch)
tree1c1cbace93468194cafae72e99681629d6edccef
parent7217f94752d534dc00240d38e2c98751cd0b3d6a (diff)
* path.c (path_conv::check): Avoid directly referencing fields of the dev
structure when it can be easily avoided.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/path.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index c23d531cc..6bb03dbec 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2012-04-06 Christopher Faylor <me.cygwin2012@cgf.cx>
+
+ * path.c (path_conv::check): Avoid directly referencing fields of the
+ dev structure when it can be easily avoided.
+
2012-04-05 Corinna Vinschen <corinna@vinschen.de>
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 14.
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 6c848fc6f..57183da48 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -896,7 +896,7 @@ is_virtual_symlink:
if (sym.error == ENOENT && !(opt & PC_KEEP_HANDLE))
sym.error = EROFS;
else
- dev.d.devn = FH_FS;
+ dev = FH_FS;
}
/* If symlink.check found an existing non-symlink file, then