summaryrefslogtreecommitdiff
path: root/app-shells/bash/files/bash-5.3-read-sys.patch
diff options
context:
space:
mode:
Diffstat (limited to 'app-shells/bash/files/bash-5.3-read-sys.patch')
-rw-r--r--app-shells/bash/files/bash-5.3-read-sys.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/app-shells/bash/files/bash-5.3-read-sys.patch b/app-shells/bash/files/bash-5.3-read-sys.patch
new file mode 100644
index 000000000000..9491d727cced
--- /dev/null
+++ b/app-shells/bash/files/bash-5.3-read-sys.patch
@@ -0,0 +1,19 @@
+Extracted from https://cgit.git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=01070d43248fb97f3b2a08d780ae5a392573ce34
+(note https://lists.gnu.org/archive/html/bug-readline/2025-07/msg00001.html wrt Chet not discouraging
+such cherry-picking)
+
+https://lists.gnu.org/archive/html/bug-bash/2025-07/msg00031.html
+https://github.com/desultory/ugrd/pull/328
+--- builtins/evalfile.c
++++ 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);