From 4497c0df52833fc777f0708567d2e1533ac794dc Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 10 Sep 2000 03:36:40 +0000 Subject: * 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. --- winsup/cygwin/path.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/path.h') 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; -- cgit v1.2.3