diff options
author | mckusick <mckusick@FreeBSD.org> | 2008-04-11 21:51:53 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2008-04-11 21:51:53 +0000 |
commit | 044c91c383c7f84401a932af4bf99879943e7353 (patch) | |
tree | 2983bc19a2c6402284fecf688d506e82c5611f1b /sbin/restore | |
parent | 9587c1bfbcc51e19d9a1e3a7ac3e7765eb631d23 (diff) | |
download | FreeBSD-src-044c91c383c7f84401a932af4bf99879943e7353.zip FreeBSD-src-044c91c383c7f84401a932af4bf99879943e7353.tar.gz |
Avoid printing spurious ``Header with wrong dumpdate.'' message.
Diffstat (limited to 'sbin/restore')
-rw-r--r-- | sbin/restore/tape.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c index 00b7d85..074d1b1 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); |