Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/sbin/restore Pull up revision 1.39 (requested by sommer...
details: https://anonhg.NetBSD.org/src/rev/1bee523b5605
branches: netbsd-1-4
changeset: 470222:1bee523b5605
user: he <he%NetBSD.org@localhost>
date: Mon Jan 31 19:46:54 2000 +0000
description:
Pull up revision 1.39 (requested by sommerfeld):
Print the header even on dumps from a system with an unset
host name. Fixes PR#9282.
diffstat:
sbin/restore/tape.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r dce8f2512573 -r 1bee523b5605 sbin/restore/tape.c
--- a/sbin/restore/tape.c Mon Jan 31 19:40:02 2000 +0000
+++ b/sbin/restore/tape.c Mon Jan 31 19:46:54 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tape.c,v 1.38 1999/01/03 01:50:34 lukem Exp $ */
+/* $NetBSD: tape.c,v 1.38.2.1 2000/01/31 19:46:54 he Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)tape.c 8.9 (Berkeley) 5/1/95";
#else
-__RCSID("$NetBSD: tape.c,v 1.38 1999/01/03 01:50:34 lukem Exp $");
+__RCSID("$NetBSD: tape.c,v 1.38.2.1 2000/01/31 19:46:54 he Exp $");
#endif
#endif /* not lint */
@@ -508,10 +508,9 @@
fprintf(stdout, "Dump date: %s", ctime(&spcl.c_date));
fprintf(stdout, "Dumped from: %s",
(spcl.c_ddate == 0) ? "the epoch\n" : ctime(&spcl.c_ddate));
- if (spcl.c_host[0] == '\0')
- return;
fprintf(stderr, "Level %d dump of %s on %s:%s\n",
- spcl.c_level, spcl.c_filesys, spcl.c_host, spcl.c_dev);
+ spcl.c_level, spcl.c_filesys,
+ *spcl.c_host? spcl.c_host: "[unknown]", spcl.c_dev);
fprintf(stderr, "Label: %s\n", spcl.c_label);
}
Home |
Main Index |
Thread Index |
Old Index