forked from pool/glibc
19 lines
695 B
Diff
19 lines
695 B
Diff
|
2018-09-06 Stefan Liebler <stli@linux.ibm.com>
|
||
|
|
||
|
* sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
|
||
|
Increment size of new_argv by one.
|
||
|
|
||
|
Index: glibc-2.28/sysdeps/unix/sysv/linux/spawni.c
|
||
|
===================================================================
|
||
|
--- glibc-2.28.orig/sysdeps/unix/sysv/linux/spawni.c
|
||
|
+++ glibc-2.28/sysdeps/unix/sysv/linux/spawni.c
|
||
|
@@ -101,7 +101,7 @@ maybe_script_execute (struct posix_spawn
|
||
|
ptrdiff_t argc = args->argc;
|
||
|
|
||
|
/* Construct an argument list for the shell. */
|
||
|
- char *new_argv[argc + 1];
|
||
|
+ char *new_argv[argc + 2];
|
||
|
new_argv[0] = (char *) _PATH_BSHELL;
|
||
|
new_argv[1] = (char *) args->file;
|
||
|
if (argc > 1)
|