* path.cc (chdir): Use the full path for cwd_win32. Consider attempts to chdir

to strings of dots > 2 to be an error.  Pass 'dir' argument to cygcwd.set.
(cwdstuff::set): Need to treat arguments from chdir differently.
* path.h (cwdstuff): Add an argument to set.
This commit is contained in:
Christopher Faylor
2000-09-10 03:36:40 +00:00
parent 2137295d10
commit 4497c0df52
3 changed files with 39 additions and 11 deletions

View File

@ -139,7 +139,7 @@ struct cwdstuff
void fixup_after_exec (char *win32, char *posix, DWORD hash);
bool get_initial ();
void copy (char * &posix_cwd, char * &win32_cwd, DWORD hash_cwd);
void set (char *win32_cwd);
void set (const char *win32_cwd, const char *posix_cwd = NULL);
};
extern cwdstuff cygcwd;