]> sourceware.org Git - newlib-cygwin.git/commitdiff
* mount.cc (mount_info::from_fstab): Use cygwin_hmodule rather than trying to
authorChristopher Faylor <me@cgf.cx>
Fri, 23 May 2008 15:33:03 +0000 (15:33 +0000)
committerChristopher Faylor <me@cgf.cx>
Fri, 23 May 2008 15:33:03 +0000 (15:33 +0000)
find handle based on cygwin1.dll.
* path.cc (symlink_info::check): Remove unused variable.

winsup/cygwin/ChangeLog
winsup/cygwin/mount.cc
winsup/cygwin/path.cc

index 50d94cc9787dcaa67d1b04618d5a41005fa9c5f9..bd426b2106114dbee3b950d80661286ac6cb7262 100644 (file)
@@ -1,3 +1,10 @@
+2008-05-23  Christopher Faylor  <me+cygwin@cgf.cx>
+
+       * mount.cc (mount_info::from_fstab): Use cygwin_hmodule rather than
+       trying to find handle based on cygwin1.dll.
+
+       * path.cc (symlink_info::check): Remove unused variable.
+
 2008-05-22  Corinna Vinschen  <corinna@vinschen.de>
 
        * shared.cc (open_shared): Fix comments.  Fix a condition which has
index 5ecb63947dd8ace398b0526b11957ce5fdb4055c..1d7d7cda784854f7554e644b37bce840d9a98595 100644 (file)
@@ -877,10 +877,9 @@ mount_info::from_fstab (bool user)
   PWCHAR path = path_buf;
   PWCHAR w;
   
-  if (!GetModuleFileNameW (GetModuleHandleW (L"cygwin1.dll"),
-                          path, NT_MAX_PATH))
+  if (!GetModuleFileNameW (cygwin_hmodule, path, NT_MAX_PATH))
     {
-      debug_printf ("GetModuleFileNameW, %E");
+      debug_printf ("GetModuleFileNameW(%p, path, %u), %E", cygwin_hmodule, NT_MAX_PATH);
       return false;
     }
   w = wcsrchr (path, L'\\');
index 102326d1ef0c116c9468c3f9751fd898abb014d1..dd7ba44b38db9670da03a3225f79c15fc7bb75b1 100644 (file)
@@ -2350,7 +2350,6 @@ symlink_info::check (char *path, const suffix_info *suffixes, unsigned opt,
       FILE_BASIC_INFORMATION fbi;
       NTSTATUS status;
       IO_STATUS_BLOCK io;
-      bool no_ea = false;
 
       error = 0;
       get_nt_native_path (suffix.path, upath, pflags & MOUNT_ENC);
@@ -2374,7 +2373,6 @@ symlink_info::check (char *path, const suffix_info *suffixes, unsigned opt,
       /* No right to access EAs or EAs not supported? */
       if (status == STATUS_ACCESS_DENIED || status == STATUS_EAS_NOT_SUPPORTED)
        {
-         no_ea = true;
          /* If EAs are not supported, there's no sense to check them again
             whith suffixes attached.  So we set eabuf/easize to 0 here once. */
          if (status == STATUS_EAS_NOT_SUPPORTED)
This page took 0.037686 seconds and 5 git commands to generate.