mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-11-25 09:38:02 +01:00
Bash-4.4 distribution sources and documentation
This commit is contained in:
1 parent
30a978b7d8
commit
a0c0a00fc4
588 files changed
+130746
-80164
No files matched your search
@@ -205,7 +205,7 @@ make_buffered_stream (fd, buffer, bufsize)
|
||||
if (bufsize == 1)
|
||||
bp->b_flag |= B_UNBUFF;
|
||||
if (O_TEXT && (fcntl (fd, F_GETFL) & O_TEXT) != 0)
|
||||
bp->b_flag |= O_TEXT;
|
||||
bp->b_flag |= B_TEXT;
|
||||
return (bp);
|
||||
}
|
||||
|
||||
@@ -272,7 +272,7 @@ save_bash_input (fd, new_fd)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (buffers[nfd])
|
||||
if (nfd < nbuffers && buffers[nfd])
|
||||
{
|
||||
/* What's this? A stray buffer without an associated open file
|
||||
descriptor? Free up the buffer and report the error. */
|
||||
|
||||
Reference in new issue
Block a user