diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-05-31 22:52:02 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-05-31 22:52:02 +0400 |
commit | 685e55e25462bfbcbee462ec8f1f2c2d26c8c1c1 (patch) | |
tree | a9fd4f00b66a03bf449d4a1d1d79693d750d6d12 /winsup/cygwin/cygheap.cc | |
parent | 715e56676ff8dbb902fd1eae36ff91e10037faca (diff) |
* cygheap.cc (cygheap_user::set_name): Allow to change the user name
if it only differs by case.
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r-- | winsup/cygwin/cygheap.cc | 4 |
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); } |