summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/environ.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-06-26 19:39:05 +0000
committerChristopher Faylor <me@cgf.cx>2002-06-26 19:39:05 +0000
commitc99902b9b09c43722eeccac40175f9e69d9e59c4 (patch)
treef54598c586a7cba3597891fae24dc6a3769f3059 /winsup/cygwin/environ.cc
parentbe5007aa5299be3acfe2ac63236fce319bb96bb1 (diff)
downloadcygnal-c99902b9b09c43722eeccac40175f9e69d9e59c4.tar.gz
cygnal-c99902b9b09c43722eeccac40175f9e69d9e59c4.tar.bz2
cygnal-c99902b9b09c43722eeccac40175f9e69d9e59c4.zip
* cygheap.cc (cygheap_user::set_name): Avoid clearing things when just setting
name to itself or during first time initialization. * environ.cc (check_case_init): Make case insensitive.
Diffstat (limited to 'winsup/cygwin/environ.cc')
-rw-r--r--winsup/cygwin/environ.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc
index ab280265c..114fce7f0 100644
--- a/winsup/cygwin/environ.cc
+++ b/winsup/cygwin/environ.cc
@@ -411,12 +411,12 @@ check_case_init (const char *buf)
pcheck_case = PCHECK_RELAXED;
debug_printf ("File case checking set to RELAXED");
}
- else if (strcmp (buf, "adjust")== 0)
+ else if (strcasematch (buf, "adjust"))
{
pcheck_case = PCHECK_ADJUST;
debug_printf ("File case checking set to ADJUST");
}
- else if (strcmp (buf, "strict")== 0)
+ else if (strcasematch (buf, "strict"))
{
pcheck_case = PCHECK_STRICT;
debug_printf ("File case checking set to STRICT");