-$Id: CHANGES,v 1.269 2005/01/21 09:27:26 stelian Exp $
+$Id: CHANGES,v 1.270 2005/01/24 10:32:01 stelian Exp $
+
+Changes between versions 0.4b39 and 0.4b40 (released ????????????????)
+======================================================================
+
+1. Changed restore to emit warnings (instead of emitting a fatal
+ error) if a file (or a directory) is unavailable for a
+ comparision (if the user doesn't have the necessary permissions
+ to access it for example). Thanks to Kenneth Porter
+ <shiva@sewingwitch.com> for the bug report.
Changes between versions 0.4b38 and 0.4b39 (released January 21, 2005)
======================================================================
#ifndef lint
static const char rcsid[] =
- "$Id: dirs.c,v 1.30 2005/01/14 13:01:34 stelian Exp $";
+ "$Id: dirs.c,v 1.31 2005/01/24 10:32:14 stelian Exp $";
#endif /* not lint */
#include <config.h>
unsigned long newflags;
if (LSTAT(cp, &sb) < 0) {
- warn("%s: does not exist", cp);
+ warn("unable to stat %s", cp);
do_compare_error;
continue;
}
#ifndef lint
static const char rcsid[] =
- "$Id: tape.c,v 1.85 2005/01/14 13:01:34 stelian Exp $";
+ "$Id: tape.c,v 1.86 2005/01/24 10:32:14 stelian Exp $";
#endif /* not lint */
#include <config.h>
int fd_tape, fd_disk;
if (STAT(tapefile, &sbuf_tape) != 0) {
- panic("Can't lstat tmp file %s: %s\n", tapefile,
+ panic("can't lstat tmp file %s: %s\n", tapefile,
strerror(errno));
do_compare_error;
}
}
if ((fd_tape = OPEN(tapefile, O_RDONLY)) < 0) {
- panic("Can't open %s: %s\n", tapefile, strerror(errno));
+ panic("can't open %s: %s\n", tapefile, strerror(errno));
do_compare_error;
}
if ((fd_disk = OPEN(diskfile, O_RDONLY)) < 0) {
close(fd_tape);
- panic("Can't open %s: %s\n", diskfile, strerror(errno));
+ panic("can't open %s: %s\n", diskfile, strerror(errno));
do_compare_error;
}
}
if ((r = LSTAT(name, &sb)) != 0) {
- warn("%s: does not exist (%d)", name, r);
+ warn("unable to stat %s", name);
do_compare_error;
skipfile();
return;
case IFREG:
#if COMPARE_ONTHEFLY
if ((ifile = OPEN(name, O_RDONLY)) < 0) {
- panic("Can't open %s: %s\n", name, strerror(errno));
+ warn("can't open %s", name);
skipfile();
do_compare_error;
}