From 249617055766ba89fab52068815d4f3b0fa47fa2 Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 18 Mar 2005 21:06:54 +0000 Subject: 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. --- sbin/restore/tape.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sbin/restore') 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; -- cgit v1.1