Files
bash/devel/alpine-strcpy.patch
Tianon Gravi 4811b83a9b Update all versions to Alpine 3.21
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>`).
2024-12-10 16:55:58 -08:00

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)
{