* path.cc (cwdstuff::init): Don't change to windows_system_directory
if Cygwin DLL has been loaded dynamically.
This commit is contained in:
parent
2156546df2
commit
3c788ea42a
@ -1,3 +1,8 @@
|
|||||||
|
2006-12-05 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* path.cc (cwdstuff::init): Don't change to windows_system_directory
|
||||||
|
if Cygwin DLL has been loaded dynamically.
|
||||||
|
|
||||||
2006-12-05 Corinna Vinschen <corinna@vinschen.de>
|
2006-12-05 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* path.cc (cwdstuff::set): Don't try to open directory on systems not
|
* path.cc (cwdstuff::set): Don't try to open directory on systems not
|
||||||
|
@ -4154,12 +4154,16 @@ cwdstuff::get_hash ()
|
|||||||
void
|
void
|
||||||
cwdstuff::init ()
|
cwdstuff::init ()
|
||||||
{
|
{
|
||||||
|
extern int dynamically_loaded;
|
||||||
cwd_lock.init ("cwd_lock");
|
cwd_lock.init ("cwd_lock");
|
||||||
get_initial ();
|
get_initial ();
|
||||||
/* Actually chdir into the syste dir to avoid cwd problems. See comment
|
if (!dynamically_loaded)
|
||||||
in cwdstuff::set below. */
|
{
|
||||||
extern char windows_system_directory[];
|
/* Actually chdir into the syste dir to avoid cwd problems. See comment
|
||||||
SetCurrentDirectory (windows_system_directory);
|
in cwdstuff::set below. */
|
||||||
|
extern char windows_system_directory[];
|
||||||
|
SetCurrentDirectory (windows_system_directory);
|
||||||
|
}
|
||||||
cwd_lock.release ();
|
cwd_lock.release ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user