diff options
author | Christopher Faylor <me@cgf.cx> | 2000-09-10 03:36:40 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-09-10 03:36:40 +0000 |
commit | 4497c0df52833fc777f0708567d2e1533ac794dc (patch) | |
tree | ab69d8fdaaba4758898a1680c02ca5e3ca72100f /winsup/cygwin/path.h | |
parent | 2137295d10c93590ae18a9b78230488cd6378c68 (diff) | |
download | cygnal-4497c0df52833fc777f0708567d2e1533ac794dc.tar.gz cygnal-4497c0df52833fc777f0708567d2e1533ac794dc.tar.bz2 cygnal-4497c0df52833fc777f0708567d2e1533ac794dc.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/path.h')
-rw-r--r-- | winsup/cygwin/path.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h index 01c965752..4c7f2c0e2 100644 --- a/winsup/cygwin/path.h +++ b/winsup/cygwin/path.h @@ -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; |