diff options
author | imp <imp@FreeBSD.org> | 2005-03-18 21:06:54 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2005-03-18 21:06:54 +0000 |
commit | 249617055766ba89fab52068815d4f3b0fa47fa2 (patch) | |
tree | baa3401e5b86ac82dce47bcfe33d6671650b91b5 /sbin/restore | |
parent | 326c6367dcaf569e31a4b844b1d7f6afb4d0aecd (diff) | |
download | FreeBSD-src-249617055766ba89fab52068815d4f3b0fa47fa2.zip FreeBSD-src-249617055766ba89fab52068815d4f3b0fa47fa2.tar.gz |
In order to print out the dump dates correctly, the date and ddate fields
also need to be convereted for old tapes for records of type TAPE.
Diffstat (limited to 'sbin/restore')
-rw-r--r-- | sbin/restore/tape.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c index 28bca7f..900d9ed 100644 --- a/sbin/restore/tape.c +++ b/sbin/restore/tape.c @@ -1085,6 +1085,10 @@ gethead(struct s_spcl *buf) break; case TS_TAPE: + if (buf->c_magic == NFS_MAGIC) { + buf->c_date = _time32_to_time(buf->c_old_date); + buf->c_ddate = _time32_to_time(buf->c_old_ddate); + } case TS_END: buf->c_inumber = 0; break; |