mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-15 00:10:53 +03:00
Closes: https://bugs.gentoo.org/941097 Closes: https://bugs.gentoo.org/941542 Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com> Closes: https://github.com/gentoo/gentoo/pull/40715 Signed-off-by: Sam James <sam@gentoo.org>
15 lines
487 B
Diff
15 lines
487 B
Diff
Cast bash-generated argv from char ** to const char ** so it would be of the same
|
|
type argv was declared
|
|
https://bugs.gentoo.org/941542
|
|
--- a/bash/testrec.c
|
|
+++ b/bash/testrec.c
|
|
@@ -60,7 +60,7 @@
|
|
|
|
/* Get arguments and verify them. */
|
|
|
|
- argv = make_builtin_argv (list, &argc);
|
|
+ argv = (const char**)make_builtin_argv (list, &argc);
|
|
if ((argc != 3)
|
|
|| ((strcmp (argv[0], "[%") == 0) && ((strlen (argv[2]) == 2) && ((argv[2][0] != '%') || (argv[2][1] != ']')))))
|
|
{
|