* environ.cc (envcache): Delete.
(known): Remove envcache. (getwinenv): Don't honor envcache setting.
This commit is contained in:
parent
b9cf88ddba
commit
e254790b66
|
@ -1,3 +1,9 @@
|
||||||
|
2011-06-09 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||||
|
|
||||||
|
* environ.cc (envcache): Delete.
|
||||||
|
(known): Remove envcache.
|
||||||
|
(getwinenv): Don't honor envcache setting.
|
||||||
|
|
||||||
2011-06-09 Christopher Faylor <me.cygwin2011@cgf.cx>
|
2011-06-09 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||||
|
|
||||||
* environ.c: Move code earlier to allow:
|
* environ.c: Move code earlier to allow:
|
||||||
|
|
|
@ -36,7 +36,6 @@ extern bool dos_file_warning;
|
||||||
extern bool ignore_case_with_glob;
|
extern bool ignore_case_with_glob;
|
||||||
extern bool allow_winsymlinks;
|
extern bool allow_winsymlinks;
|
||||||
bool reset_com = false;
|
bool reset_com = false;
|
||||||
static bool envcache = true;
|
|
||||||
static bool create_upcaseenv = false;
|
static bool create_upcaseenv = false;
|
||||||
|
|
||||||
static char **lastenviron;
|
static char **lastenviron;
|
||||||
|
@ -119,7 +118,6 @@ static struct parse_thing
|
||||||
} known[] NO_COPY =
|
} known[] NO_COPY =
|
||||||
{
|
{
|
||||||
{"dosfilewarning", {&dos_file_warning}, justset, NULL, {{false}, {true}}},
|
{"dosfilewarning", {&dos_file_warning}, justset, NULL, {{false}, {true}}},
|
||||||
{"envcache", {&envcache}, justset, NULL, {{true}, {false}}},
|
|
||||||
{"error_start", {func: error_start_init}, isfunc, NULL, {{0}, {0}}},
|
{"error_start", {func: error_start_init}, isfunc, NULL, {{0}, {0}}},
|
||||||
{"export", {&export_settings}, justset, NULL, {{false}, {true}}},
|
{"export", {&export_settings}, justset, NULL, {{false}, {true}}},
|
||||||
{"glob", {func: glob_init}, isfunc, NULL, {{0}, {s: "normal"}}},
|
{"glob", {func: glob_init}, isfunc, NULL, {{0}, {s: "normal"}}},
|
||||||
|
@ -349,7 +347,7 @@ getwinenv (const char *env, const char *in_posix, win_env *temp)
|
||||||
if (!cur_environ () || !(val = in_posix ?: getenv (we->name)))
|
if (!cur_environ () || !(val = in_posix ?: getenv (we->name)))
|
||||||
debug_printf ("can't set native for %s since no environ yet",
|
debug_printf ("can't set native for %s since no environ yet",
|
||||||
we->name);
|
we->name);
|
||||||
else if (!envcache || !we->posix || strcmp (val, we->posix) != 0)
|
else if (!we->posix || strcmp (val, we->posix) != 0)
|
||||||
{
|
{
|
||||||
if (temp)
|
if (temp)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue