* spawn.cc (spawn_guts): YA tweak for dealing with arcane rules of quoting in

"normal" Microsoft programs.
* child_info.h: Bump fork magic number.
* include/sys/mount.h: Add an entry for mixed mode.
This commit is contained in:
Christopher Faylor
2000-11-20 19:35:45 +00:00
parent 975aa48243
commit 099efae038
4 changed files with 22 additions and 9 deletions

View File

@ -483,7 +483,12 @@ spawn_guts (HANDLE hToken, const char * prog_arg, const char *const *argv,
for (; (p = strpbrk (a, "\"\\")); a = ++p)
{
one_line.add (a, p - a);
if ((*p == '\\' && p[1] == '"') || *p == '"')
if (*p == '\\' && p[1] == '\\')
{
one_line.add ("\\\\\\", 3);
p++;
}
else if ((*p == '\\' && p[1] == '"') || *p == '"')
one_line.add ("\\", 1);
one_line.add (p, 1);
}