mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-26 20:40:28 +00:00
Perform better fixups of NT paths in execve()
This change ensures we do a better job translating /c/foo.bar paths into c:/foo.bar paths on Windows when generating the CreateProcess() cmd line thus fixing a regression that happened in the last two months when using the help() feature of Actually Portable Python in the CMD.EXE shell.
This commit is contained in:
parent
cfb5d3e406
commit
701564de19
4 changed files with 50 additions and 10 deletions
|
@ -79,8 +79,10 @@ const char *DescribeStat(int rc, const struct stat *st) {
|
|||
i += ksnprintf(buf + i, n - i, ", .st_%s=%'lu", "blksize", st->st_blksize);
|
||||
}
|
||||
|
||||
buf[i++] = '}';
|
||||
buf[i] = 0;
|
||||
if (n - i >= 2) {
|
||||
buf[i + 0] = '}';
|
||||
buf[i + 1] = 0;
|
||||
}
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue