* environ.cc (build_env): Use "kilo"bytes not "mega"bytes. Return immediately
on error. * spawn.cc (spawn_guts): Set return value to -1 on error from build_env.
This commit is contained in:
@ -627,6 +627,7 @@ spawn_guts (const char * prog_arg, const char *const *argv,
|
||||
if (!moreinfo->envp || !envblock)
|
||||
{
|
||||
set_errno (E2BIG);
|
||||
res = -1;
|
||||
goto out;
|
||||
}
|
||||
ciresrv.set (chtype, real_path.iscygexec ());
|
||||
|
Reference in New Issue
Block a user