]> git.wh0rd.org - dump.git/commitdiff
Added the appropriate error message when dump fails to open the output file.
authorStelian Pop <stelian@popies.net>
Wed, 27 Mar 2002 16:48:38 +0000 (16:48 +0000)
committerStelian Pop <stelian@popies.net>
Wed, 27 Mar 2002 16:48:38 +0000 (16:48 +0000)
CHANGES
THANKS
dump/tape.c

diff --git a/CHANGES b/CHANGES
index b98f214d48c6e9a2b2eefa0c52ed420ea3583b47..d17b090f281a62195d1b40b4e02048b6f7c4d53b 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,4 @@
-$Id: CHANGES,v 1.167 2002/03/11 10:17:42 stelian Exp $
+$Id: CHANGES,v 1.168 2002/03/27 16:48:38 stelian Exp $
 
 Changes between versions 0.4b27 and 0.4b28 (released ?????????????????)
 =======================================================================
@@ -28,6 +28,10 @@ Changes between versions 0.4b27 and 0.4b28 (released ?????????????????)
        headers/architecture combination. Thanks to Bdale Garbee
        <bdale@gag.com> for reporting the bug.
 
+6.     Added the appropriate error message when dump fails to
+       open the output file for writing. Thanks to Amith Varghese
+       <amithv@yahoo.com> for reporting this bug.
+
 Changes between versions 0.4b26 and 0.4b27 (released February 15, 2002)
 =======================================================================
 
diff --git a/THANKS b/THANKS
index 5658e4cf6c3de1eaf693739a36f6c8e49a712b43..417306cb43e8c4ada5deb576afb303b612e4a424 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -1,4 +1,4 @@
-$Id: THANKS,v 1.54 2002/02/25 13:54:52 stelian Exp $
+$Id: THANKS,v 1.55 2002/03/27 16:48:38 stelian Exp $
 
 Dump and restore were written by the people of the CSRG at the University
 of California, Berkeley.
@@ -85,6 +85,7 @@ Mike Tibor            tibor@lib.uaa.alaska.edu
 Erik Troan             ewt@redhat.com
 Theodore Y. Ts'o       tytso@valinux.com
 Stephen Tweedie                sct@dcs.ed.ac.uk
+Amith Varghese         amithv@yahoo.com
 Daniel Veillard                Daniel.Veillard@imag.fr
 Jason Venner           jason@idiom.com
 Christian Weisgerber   naddy@mips.rhein-neckar.de
index 39d8b4caae4023890c9be13f6604ac8faf851391..e81a58d149d47a8fb3391f0bd999900ead915797 100644 (file)
@@ -41,7 +41,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: tape.c,v 1.65 2002/03/11 10:17:43 stelian Exp $";
+       "$Id: tape.c,v 1.66 2002/03/27 16:48:38 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
@@ -872,7 +872,8 @@ restore_check_point:
                                  OPEN(tape, O_RDWR|O_CREAT, 0666))) < 0)
 #endif
                    {
-                       msg("Cannot open output \"%s\".\n", tape);
+                       msg("Cannot open output \"%s\": %s\n", tape, 
+                           strerror(errno));
                        if (!query("Do you want to retry the open?"))
                                dumpabort(0);
                }