longer than CreateProcess allows (32K).
+2003-09-26 Corinna Vinschen <corinna@vinschen.de>
+
+ * spawn.cc (spawn_guts): Set errno to E2BIG if command line is
+ longer than CreateProcess allows (32K).
+
2003-09-25 Christopher Faylor <cgf@redhat.com>
* dtable.cc (build_fh_name): Return pointer to a 'nodevice' rather than
else
one_line.add ("", 1);
MALLOC_CHECK;
+
+ if (one_line.ix > 32767)
+ {
+ debug_printf ("Command line too long (>32K), return E2BIG");
+ set_errno (E2BIG);
+ return -1;
+ }
}
char *envblock;