* spawn.cc (spawn_guts): Check constructed short pathname for being

a DOS device name and fall back to long path name, if so.
This commit is contained in:
Corinna Vinschen 2008-07-31 14:41:19 +00:00
parent 9ad2ea2fd9
commit 9fe98985b3
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-07-31 Corinna Vinschen <corinna@vinschen.de>
* spawn.cc (spawn_guts): Check constructed short pathname for being
a DOS device name and fall back to long path name, if so.
2008-07-30 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_base::fstat_by_name): Check for

View File

@ -483,7 +483,10 @@ spawn_guts (const char *prog_arg, const char *const *argv,
PWCHAR r = runpath + 4;
if (r[1] != L':') /* UNC path */
*(r += 2) = L'\\';
runpath = r;
if (!RtlIsDosDeviceName_U (r))
runpath = r;
else if (*r == L'\\')
*r = L'C';
}
}