File: badentry_terminal

package info (click to toggle)
dump 0.4b47-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,316 kB
  • sloc: ansic: 16,267; sh: 5,138; makefile: 161
file content (20 lines) | stat: -rw-r--r-- 591 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/restore/utilities.c
+++ b/restore/utilities.c
@@ -359,7 +359,7 @@ upperbnd(dump_ino_t start)
 }
 
 /*
- * report on a badly formed entry
+ * report and terminate on a badly formed entry
  */
 void
 badentry(struct entry *ep, const char *msg)
@@ -387,6 +387,8 @@ badentry(struct entry *ep, const char *m
 	fprintf(stderr, "entry type: %s\n",
 		ep->e_type == NODE ? "NODE" : "LEAF");
 	fprintf(stderr, "inode number: %lu\n", (unsigned long)ep->e_ino);
+	/* a corrupt symbol table is very unlikely to be recoverable */
+	yflag = 0;										
 	panic("flags: %s\n", flagvalues(ep));
 }