* 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.
This commit is contained in:
parent
be5007aa52
commit
c99902b9b0
|
@ -1,3 +1,10 @@
|
||||||
|
2002-06-26 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2002-06-26 Corinna Vinschen <corinna@vinschen.de>
|
2002-06-26 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler.h (fhandler_socket::bind): Add method definition.
|
* fhandler.h (fhandler_socket::bind): Add method definition.
|
||||||
|
|
|
@ -440,9 +440,17 @@ cygheap_user::~cygheap_user ()
|
||||||
void
|
void
|
||||||
cygheap_user::set_name (const char *new_name)
|
cygheap_user::set_name (const char *new_name)
|
||||||
{
|
{
|
||||||
if (pname)
|
if (strcasematch (new_name, pname))
|
||||||
|
return; /* nothing changed */
|
||||||
|
|
||||||
|
bool allocated = !!pname;
|
||||||
|
if (allocated)
|
||||||
cfree (pname);
|
cfree (pname);
|
||||||
|
|
||||||
pname = cstrdup (new_name ? new_name : "");
|
pname = cstrdup (new_name ? new_name : "");
|
||||||
|
if (!allocated)
|
||||||
|
return; /* Initializing. Don't bother with other stuff. */
|
||||||
|
|
||||||
homedrive = NULL;
|
homedrive = NULL;
|
||||||
homepath = NULL;
|
homepath = NULL;
|
||||||
if (plogsrv)
|
if (plogsrv)
|
||||||
|
|
|
@ -411,12 +411,12 @@ check_case_init (const char *buf)
|
||||||
pcheck_case = PCHECK_RELAXED;
|
pcheck_case = PCHECK_RELAXED;
|
||||||
debug_printf ("File case checking set to RELAXED");
|
debug_printf ("File case checking set to RELAXED");
|
||||||
}
|
}
|
||||||
else if (strcmp (buf, "adjust")== 0)
|
else if (strcasematch (buf, "adjust"))
|
||||||
{
|
{
|
||||||
pcheck_case = PCHECK_ADJUST;
|
pcheck_case = PCHECK_ADJUST;
|
||||||
debug_printf ("File case checking set to ADJUST");
|
debug_printf ("File case checking set to ADJUST");
|
||||||
}
|
}
|
||||||
else if (strcmp (buf, "strict")== 0)
|
else if (strcasematch (buf, "strict"))
|
||||||
{
|
{
|
||||||
pcheck_case = PCHECK_STRICT;
|
pcheck_case = PCHECK_STRICT;
|
||||||
debug_printf ("File case checking set to STRICT");
|
debug_printf ("File case checking set to STRICT");
|
||||||
|
|
Loading…
Reference in New Issue