* uinfo.cc (cygheap_user::ontherange): Don't set HOMEDRIVE or HOMEPATH unless

one or the other is specified.
This commit is contained in:
Christopher Faylor 2002-06-15 01:17:45 +00:00
parent 6d171b4482
commit cff111a6bf
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-06-14 Christopher Faylor <cgf@redhat.com>
* uinfo.cc (cygheap_user::ontherange): Don't set HOMEDRIVE or HOMEPATH
unless one or the other is specified.
2002-06-14 Christopher Faylor <cgf@redhat.com> 2002-06-14 Christopher Faylor <cgf@redhat.com>
* cygheap.h (cygheap_user::userprofile_env_buf): New static member. * cygheap.h (cygheap_user::userprofile_env_buf): New static member.

View File

@ -234,6 +234,7 @@ cygheap_user::ontherange (homebodies what, struct passwd *pw)
debug_printf ("Set HOME (from HOMEDRIVE/HOMEPATH) to %s", home); debug_printf ("Set HOME (from HOMEDRIVE/HOMEPATH) to %s", home);
} }
} }
return NULL;
} }
if (homedrive == NULL || !homedrive[0]) if (homedrive == NULL || !homedrive[0])