4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-28 12:05:47 +08:00

* 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:
Christopher Faylor 2004-05-28 19:50:07 +00:00
parent dccc3e5d2c
commit e3778517d9
44 changed files with 287 additions and 282 deletions

View File

@ -1,3 +1,8 @@
2004-05-28 Pierre Humblet <Pierre.Humblet@ieee.org>
* path.cc (chdir): Always use the normalized_path as posix_cwd, except
if it starts with a drive.
2004-05-25 Christopher Faylor <cgf@alum.bu.edu> 2004-05-25 Christopher Faylor <cgf@alum.bu.edu>
* winbase.h: Semi-revert previous patch as it caused strange behavior. * winbase.h: Semi-revert previous patch as it caused strange behavior.

View File

@ -3325,7 +3325,7 @@ chdir (const char *in_dir)
The posix_cwd is just path.normalized_path. The posix_cwd is just path.normalized_path.
In other cases we let cwd.set obtain the Posix path through In other cases we let cwd.set obtain the Posix path through
the mount table. */ the mount table. */
if (!path.has_symlinks () && !isabspath (in_dir)) if (!isdrive(path.normalized_path))
posix_cwd = path.normalized_path; posix_cwd = path.normalized_path;
res = 0; res = 0;
doit = true; doit = true;