mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-11 06:00:49 +02:00
Bash-4.4 distribution sources and documentation
This commit is contained in:
@@ -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