From 25fdb1ded1ea05613140927d83f8e3da531bd6c5 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 6 Apr 2012 04:40:49 +0000 Subject: [PATCH] * path.c (path_conv::check): Avoid directly referencing fields of the dev structure when it can be easily avoided. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/path.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + + * path.c (path_conv::check): Avoid directly referencing fields of the + dev structure when it can be easily avoided. + 2012-04-05 Corinna Vinschen * 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