From 1df5d2e8371b4c1dd570fda41ec418b6a5836d1a Mon Sep 17 00:00:00 2001 From: Stelian Pop Date: Wed, 27 Mar 2002 16:48:38 +0000 Subject: [PATCH] Added the appropriate error message when dump fails to open the output file. --- CHANGES | 6 +++++- THANKS | 3 ++- dump/tape.c | 5 +++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index b98f214..d17b090 100644 --- 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 for reporting the bug. +6. Added the appropriate error message when dump fails to + open the output file for writing. Thanks to Amith Varghese + for reporting this bug. + Changes between versions 0.4b26 and 0.4b27 (released February 15, 2002) ======================================================================= diff --git a/THANKS b/THANKS index 5658e4c..417306c 100644 --- 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 diff --git a/dump/tape.c b/dump/tape.c index 39d8b4c..e81a58d 100644 --- a/dump/tape.c +++ b/dump/tape.c @@ -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 @@ -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); } -- 2.39.5