* cygheap.cc (cygheap_user::set_name): Allow to change the user name
if it only differs by case.
This commit is contained in:
parent
715e56676f
commit
685e55e254
|
@ -1,3 +1,8 @@
|
||||||
|
2010-05-31 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* cygheap.cc (cygheap_user::set_name): Allow to change the user name
|
||||||
|
if it only differs by case.
|
||||||
|
|
||||||
2010-05-26 Corinna Vinschen <corinna@vinschen.de>
|
2010-05-26 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler_registry.cc (multi_wcstombs): New function.
|
* fhandler_registry.cc (multi_wcstombs): New function.
|
||||||
|
|
|
@ -446,7 +446,9 @@ cygheap_user::set_name (const char *new_name)
|
||||||
|
|
||||||
if (allocated)
|
if (allocated)
|
||||||
{
|
{
|
||||||
if (strcasematch (new_name, pname))
|
/* Windows user names are case-insensitive. Here we want the correct
|
||||||
|
username, though, even if it only differs by case. */
|
||||||
|
if (!strcmp (new_name, pname))
|
||||||
return;
|
return;
|
||||||
cfree (pname);
|
cfree (pname);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue