* spawn.cc (spawn_guts): Only try to remove long path prefix from

runpath if runpath is not NULL.
This commit is contained in:
Corinna Vinschen 2010-01-25 11:21:56 +00:00
parent aced35f883
commit 27ac64346f
2 changed files with 23 additions and 17 deletions

View File

@ -1,3 +1,8 @@
2010-01-25 Corinna Vinschen <corinna@vinschen.de>
* spawn.cc (spawn_guts): Only try to remove long path prefix from
runpath if runpath is not NULL.
2010-01-25 Corinna Vinschen <corinna@vinschen.de>
* nlsfuncs.cc (__get_lcid_from_locale): Fix a comment. Handle special

View File

@ -489,6 +489,7 @@ spawn_guts (const char *prog_arg, const char *const *argv,
}
runpath = null_app_name ? NULL : real_path.get_wide_win32_path (runpath);
if (runpath)
{ /* If the executable path length is < MAX_PATH, make sure the long path
win32 prefix is removed from the path to make subsequent native Win32
child processes happy which are not long path aware. */