diff options
author | Christopher Faylor <me@cgf.cx> | 2012-04-06 08:40:49 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-04-06 08:40:49 +0400 |
commit | 25fdb1ded1ea05613140927d83f8e3da531bd6c5 (patch) | |
tree | 1c1cbace93468194cafae72e99681629d6edccef | |
parent | 7217f94752d534dc00240d38e2c98751cd0b3d6a (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/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/path.cc | 2 |
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 |