]> sourceware.org Git - newlib-cygwin.git/commitdiff
* uinfo.cc (fetch_windows_home): Disable fetching from homeDrive or
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 14 Jan 2015 11:13:23 +0000 (11:13 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 14 Jan 2015 11:13:23 +0000 (11:13 +0000)
usri3_home_dir_drive.  Add comment.

winsup/cygwin/ChangeLog
winsup/cygwin/uinfo.cc

index f916d8b1d95ef328936cc3a7909a1dbd3a1e5043..d1372ee45f34252dd797f809c1386a5b8cff8295 100644 (file)
@@ -1,3 +1,8 @@
+2015-01-14  Corinna Vinschen  <corinna@vinschen.de>
+
+       * uinfo.cc (fetch_windows_home): Disable fetching from homeDrive or
+       usri3_home_dir_drive.  Add comment.
+
 2015-01-14  Corinna Vinschen  <corinna@vinschen.de>
 
        * environ.cc (renv_arr): Drop variables not usually in a Windows
index 89ed5c27b4182d624fac93159fcd538d951dba91..ebc2991e9fc72b4f8fb40eb6683044a4f2b355e7 100644 (file)
@@ -822,15 +822,23 @@ fetch_windows_home (cyg_ldap *pldap, PUSER_INFO_3 ui, cygpsid &sid)
 
   if (pldap)
     {
+#if 0
+      /* Disable preferring homeDrive for now.  The drive letter may not
+         be available when it's needed. */
       home_from_db = pldap->get_string_attribute (L"homeDrive");
       if (!home_from_db || !*home_from_db)
+#endif
        home_from_db = pldap->get_string_attribute (L"homeDirectory");
     }
   else if (ui)
     {
+#if 0
+      /* Ditto. */
       if (ui->usri3_home_dir_drive && *ui->usri3_home_dir_drive)
        home_from_db = ui->usri3_home_dir_drive;
-      else if (ui->usri3_home_dir && *ui->usri3_home_dir)
+      else
+#endif
+      if (ui->usri3_home_dir && *ui->usri3_home_dir)
        home_from_db = ui->usri3_home_dir;
     }
   if (home_from_db && *home_from_db)
This page took 0.036076 seconds and 5 git commands to generate.