projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new copyright notice
[unix-history]
/
usr
/
src
/
sbin
/
restore
/
symtab.c
diff --git
a/usr/src/sbin/restore/symtab.c
b/usr/src/sbin/restore/symtab.c
index
849ffb8
..
ca1bbab
100644
(file)
--- a/
usr/src/sbin/restore/symtab.c
+++ b/
usr/src/sbin/restore/symtab.c
@@
-1,12
+1,13
@@
/*
/*
- * Copyright (c) 1983 Regents of the University of California.
- * All rights reserved. The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
+ * Copyright (c) 1983 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * %sccs.include.redist.c%
*/
#ifndef lint
*/
#ifndef lint
-static char sccsid[] = "@(#)symtab.c 5.
1
(Berkeley) %G%";
-#endif
not lint
+static char sccsid[] = "@(#)symtab.c 5.
5
(Berkeley) %G%";
+#endif
/* not lint */
/*
* These routines maintain the symbol table which tracks the state
/*
* These routines maintain the symbol table which tracks the state
@@
-19,6
+20,7
@@
static char sccsid[] = "@(#)symtab.c 5.1 (Berkeley) %G%";
#include "restore.h"
#include <sys/stat.h>
#include "restore.h"
#include <sys/stat.h>
+#include <ufs/dir.h>
/*
* The following variables define the inode symbol table.
/*
* The following variables define the inode symbol table.
@@
-408,6
+410,8
@@
dumpsymtable(filename, checkpt)
struct symtableheader hdr;
vprintf(stdout, "Check pointing the restore\n");
struct symtableheader hdr;
vprintf(stdout, "Check pointing the restore\n");
+ if (Nflag)
+ return;
if ((fd = fopen(filename, "w")) == NULL) {
perror("fopen");
panic("cannot create save file %s for symbol table\n",
if ((fd = fopen(filename, "w")) == NULL) {
perror("fopen");
panic("cannot create save file %s for symbol table\n",