From 1bbf1ac6a54f7277f9f29c8379176b5470e2ac17 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 27 May 2005 18:26:19 +0000 Subject: * cygheap.h: Reference _cygheap_start via .cygheap section. * environ.cc: Fix force_into_environment typo throughout. (spenvs): Export CYGWIN_DEBUG if DEBUGGING. --- winsup/cygwin/environ.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/environ.cc') diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc index a280f52c7..5af62d628 100644 --- a/winsup/cygwin/environ.cc +++ b/winsup/cygwin/environ.cc @@ -856,7 +856,7 @@ struct spenv { const char *name; size_t namelen; - bool force_into_environmentironment; /* If true, always add to env if missing */ + bool force_into_environment; /* If true, always add to env if missing */ bool add_if_exists; /* if true, retrieve value from cache */ const char * (cygheap_user::*from_cygheap) (const char *, size_t); @@ -869,6 +869,9 @@ struct spenv /* Keep this list in upper case and sorted */ static NO_COPY spenv spenvs[] = { +#ifdef DEBUGGING + {NL ("CYGWIN_DEBUG="), false, true, &cygheap_user::env_homedrive}, +#endif {NL ("HOMEDRIVE="), false, false, &cygheap_user::env_homedrive}, {NL ("HOMEPATH="), false, false, &cygheap_user::env_homepath}, {NL ("LOGONSERVER="), false, false, &cygheap_user::env_logsrv}, @@ -977,7 +980,7 @@ build_env (const char * const *envp, char *&envblock, int &envc, assert ((srcp - envp) == n); /* Fill in any required-but-missing environment variables. */ for (unsigned i = 0; i < SPENVS_SIZE; i++) - if (!saw_spenv[i] && (spenvs[i].force_into_environmentironment || cygheap->user.issetuid ())) + if (!saw_spenv[i] && (spenvs[i].force_into_environment || cygheap->user.issetuid ())) { *dstp = spenvs[i].retrieve (false); if (*dstp && *dstp != env_dontadd) -- cgit v1.2.3