summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/cygheap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r--winsup/cygwin/cygheap.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc
index 6cbdda934..623fd765d 100644
--- a/winsup/cygwin/cygheap.cc
+++ b/winsup/cygwin/cygheap.cc
@@ -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);
}