* path.cc (chdir): Always use the normalized_path as posix_cwd, except if it
starts with a drive. Also perform whitespace cleanup.
This commit is contained in:
@@ -913,7 +913,7 @@ build_env (const char * const *envp, char *&envblock, int &envc,
|
||||
if (cygheap->user.issetuid ())
|
||||
for (unsigned i = 0; i < SPENVS_SIZE; i++)
|
||||
if (!saw_spenv[i])
|
||||
{
|
||||
{
|
||||
*dstp = spenvs[i].retrieve (no_envblock);
|
||||
if (*dstp && !no_envblock && *dstp != env_dontadd)
|
||||
{
|
||||
@@ -921,7 +921,7 @@ build_env (const char * const *envp, char *&envblock, int &envc,
|
||||
dstp++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
envc = dstp - newenv; /* Number of entries in newenv */
|
||||
assert ((size_t) envc <= (n + SPENVS_SIZE));
|
||||
*dstp = NULL; /* Terminate */
|
||||
|
Reference in New Issue
Block a user