From cfbb5cdd50ad42bc3b5e74bbc4ef8175f8c745aa Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Fri, 11 Apr 2008 21:51:53 +0000 Subject: [PATCH] Avoid printing spurious ``Header with wrong dumpdate.'' message. --- sbin/restore/tape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c index 00b7d850c80..074d1b14167 100644 --- a/sbin/restore/tape.c +++ b/sbin/restore/tape.c @@ -1379,7 +1379,7 @@ gethead(struct s_spcl *buf) } if (checksum((int *)buf) == FAIL) return (FAIL); - if (_time64_to_time(buf->c_date) != dumpdate) + if (dumpdate != 0 && _time64_to_time(buf->c_date) != dumpdate) fprintf(stderr, "Header with wrong dumpdate.\n"); if (Bcvt) { swabst((u_char *)"8l4s1q8l2q17l", (u_char *)buf);