Subject: Re: bin/21020: /sbin/dump fails in traverse.c:mapdirs()
To: None <netbsd-bugs@netbsd.org>
From: Geoff Wing <gcw@pobox.com>
List: netbsd-bugs
Date: 04/08/2003 13:17:45
Patch for problem and typo (or word invention).
--- traverse.c.orig 2003-04-03 11:25:21.000000000 +1000
+++ traverse.c 2003-04-08 13:13:28.000000000 +1000
@@ -285,7 +285,7 @@
isdir >>= 1;
/*
* If dir has been removed from the used map, it's either
- * because it had the nodump flag, or it herited it from
+ * because it had the nodump flag, or it inherited it from
* its parent. A directory can't be in dumpinomap if
* not in usedinomap, but we have to go throuh it anyway
* to propagate the nodump attribute.
@@ -407,8 +407,8 @@
struct direct *dp;
union dinode *ip;
long loc, ret = 0;
- char *dblk;
ino_t ino;
+ static char *dblk;
if (dblk == NULL && (dblk = malloc(size)) == NULL)
quit("searchdir: cannot allocate indirect memory.\n");