X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fbuffer.c;h=c0cedc3c8e9fa8be2d293268f944d424f2bdb453;hb=f2bf9f2ffa06c0a89a799e64672f58a8e7d0efc7;hp=81efe323eff270b531b486584ff12554068fe355;hpb=cad45a0bae7164235be04c967601be1196867aaa;p=chaz%2Ftar diff --git a/src/buffer.c b/src/buffer.c index 81efe32..c0cedc3 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -20,11 +20,13 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include +#include #include #include #include +#include #include #include @@ -967,7 +969,7 @@ new_volume (enum access_mode mode) static FILE *read_file; static int looped; int prompt; - + if (!read_file && !info_script_option) /* FIXME: if fopen is used, it will never be closed. */ read_file = archive == STDIN_FILENO ? fopen (TTY_NAME, "r") : stdin; @@ -991,7 +993,7 @@ new_volume (enum access_mode mode) looped = 1; } prompt = looped; - + tryagain: if (prompt) {