mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-21 22:53:31 +02:00
* Fix sourcing files from /sys (which affects sys-kernel/ugrd) I pulled this one out of a 'devel' push. Note https://lists.gnu.org/archive/html/bug-readline/2025-07/msg00001.html wrt Chet not discouraging such cherry-picking. Thanks to zen_desu for confirming it fixes the ugrd issue too. * Fix crash w/ empty PROMPT_COMMAND Signed-off-by: Sam James <sam@gentoo.org>
19 lines
672 B
Diff
19 lines
672 B
Diff
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);
|