* 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:
parent
9ad2ea2fd9
commit
9fe98985b3
@ -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
|
||||
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user