* cygheap.cc (cygheap_user::set_name): Allow to change the user name
if it only differs by case.
This commit is contained in:
@@ -446,7 +446,9 @@ cygheap_user::set_name (const char *new_name)
|
||||
|
||||
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;
|
||||
cfree (pname);
|
||||
}
|
||||
|
Reference in New Issue
Block a user