mirror of
https://github.com/tianon/docker-bash.git
synced 2026-11-19 16:06:17 +03:00
This also includes support for per-version patches, and converts some hacky code we had for devel to a proper patch file. My intent is to keep all these patches minimal -- any non-minimal patching (especially anything beyond "make it compile successfully") will likely be grounds for no longer supporting a given version. Almost all of these patches are cobbled together from later commits in Bash upstream (ie, backported fixes). Only one or two are actually pure-Tianon creations (and those are just `#include <something.h>`).
18 lines
397 B
Diff
18 lines
397 B
Diff
Description: fix Alpine ssize_t vs size_t bug
|
|
Author: Emanuele Torre
|
|
Origin: https://lists.gnu.org/archive/html/bug-bash/2023-05/msg00011.html
|
|
|
|
diff --git a/lib/sh/strscpy.c b/lib/sh/strscpy.c
|
|
index 7a948ebe..e2679e95 100644
|
|
--- a/lib/sh/strscpy.c
|
|
+++ b/lib/sh/strscpy.c
|
|
@@ -22,6 +22,8 @@
|
|
|
|
#include <bashansi.h>
|
|
|
|
+#include <unistd.h>
|
|
+
|
|
ssize_t
|
|
strscpy (char *d, const char *s, size_t len)
|
|
{
|