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:
parent
dccc3e5d2c
commit
e3778517d9
@ -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.
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user