mirror of
https://github.com/openwrt/packages.git
synced 2026-02-04 12:06:29 +08:00
- Fix posix-mode issue with "wait -n", where it can return process IDs outside the requested set - Do not try to use shm_open, there is too much variance in behavior across systems - Remove internal quoting that causes failures when expanding nested array subscripts in an arithmetic context - Fix issue with source when read(2) returns fewer characters than fstat(2) says are available - Fix crash when restoring default disposition for SIGINT in asynchronous subshell - Fix issues with range expressions and non-ascii characters in glob patterns when globasciiranges is enabled - Fix issue where nofork command substitutions can affect redirections in the calling shell - Fix issue with calling mbrtowc too much when translating ansic-single-quoted strings - Fix crash when interrupting reverse i-search with ^C Signed-off-by: Wei-Ting Yang <williamatcg@gmail.com>
30 lines
872 B
Diff
30 lines
872 B
Diff
From edff796a305b09fd991fd8e965d4c83bff91ee39 Mon Sep 17 00:00:00 2001
|
|
From: Chet Ramey <chet.ramey@case.edu>
|
|
Date: Wed, 26 Nov 2025 12:46:21 -0500
|
|
Subject: Bash-5.3 patch 4: fix issue with source when read(2) returns fewer
|
|
characters than fstat(2) says are available
|
|
|
|
--- a/builtins/evalfile.c
|
|
+++ b/builtins/evalfile.c
|
|
@@ -160,8 +160,10 @@ file_error_and_exit:
|
|
nr = read (fd, string, file_size);
|
|
if (nr >= 0)
|
|
string[nr] = '\0';
|
|
+#if 0
|
|
if (nr != file_size)
|
|
nr = -1; /* XXX - didn't get the whole file */
|
|
+#endif
|
|
}
|
|
else
|
|
nr = zmapfd (fd, &string, 0);
|
|
--- a/patchlevel.h
|
|
+++ b/patchlevel.h
|
|
@@ -25,6 +25,6 @@
|
|
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
|
|
looks for to find the patch level (for the sccs version string). */
|
|
|
|
-#define PATCHLEVEL 3
|
|
+#define PATCHLEVEL 4
|
|
|
|
#endif /* _PATCHLEVEL_H_ */
|