]> git.wh0rd.org - dump.git/commitdiff
Fix fgets bug when asking for a tape name.
authorStelian Pop <stelian@popies.net>
Wed, 8 Jun 2011 15:40:53 +0000 (15:40 +0000)
committerStelian Pop <stelian@popies.net>
Wed, 8 Jun 2011 15:40:53 +0000 (15:40 +0000)
CHANGES
restore/tape.c

diff --git a/CHANGES b/CHANGES
index 9aff206f885d2957ce2bc9fcf03d85da3620bb54..5aec318ce6b4b17c39f81186cccbfd2c96d29a16 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,4 @@
-$Id: CHANGES,v 1.325 2011/05/23 08:34:20 stelian Exp $
+$Id: CHANGES,v 1.326 2011/06/08 15:40:53 stelian Exp $
 
 
 Changes between versions 0.4b43 and 0.4b44 (released ?????????????)
 
 
 Changes between versions 0.4b43 and 0.4b44 (released ?????????????)
@@ -34,6 +34,10 @@ Changes between versions 0.4b43 and 0.4b44 (released ?????????????)
 
 8.     Add quick regression script from Bear Giles <bgiles@coyotesong.com>.
 
 
 8.     Add quick regression script from Bear Giles <bgiles@coyotesong.com>.
 
+9.     Fix a bug introduced in 0.4b43 causing restore to crash when
+       asking for a new volume when doing multi-volume restores. Thanks
+       to Patrik Schindler <poc@pocnet.net> for reporting the bug.
+
 Changes between versions 0.4b42 and 0.4b43 (released June 11, 2010)
 ===================================================================
 
 Changes between versions 0.4b42 and 0.4b43 (released June 11, 2010)
 ===================================================================
 
index bd411b945bf298467144dee8d1a297d160ee102c..7debfd16a054bae6ac243c8f1914e0279cde2505 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static const char rcsid[] =
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: tape.c,v 1.101 2011/05/05 16:05:40 stelian Exp $";
+       "$Id: tape.c,v 1.102 2011/06/08 15:40:53 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
 #endif /* not lint */
 
 #include <config.h>
@@ -586,7 +586,7 @@ again:
                fprintf(stderr, "otherwise enter tape name (default: %s) ", magtape);
 #endif
                (void) fflush(stderr);
                fprintf(stderr, "otherwise enter tape name (default: %s) ", magtape);
 #endif
                (void) fflush(stderr);
-               if (fgets(buf, TP_BSIZE, terminal))
+               if (!fgets(buf, TP_BSIZE, terminal))
                        exit(1);
                if (feof(terminal))
                        exit(1);
                        exit(1);
                if (feof(terminal))
                        exit(1);