Fixed bug in fsck: using bcopy() instead of structure assignment.
File exception.c converted to indent4 format.
This commit is contained in:
@@ -187,7 +187,7 @@ daddr_t n_free; /* number of free blocks */
|
||||
int badblk, dupblk;
|
||||
|
||||
#define outrange(x) (x < fsmin || x >= fsmax)
|
||||
#define zapino(x) (*(x) = zino)
|
||||
#define zapino(x) bzero(x, sizeof *x)
|
||||
struct dinode zino;
|
||||
|
||||
#define setlncnt(x,n) dolncnt(x,0,n)
|
||||
|
||||
@@ -87,7 +87,7 @@ ckinode(dp, idesc)
|
||||
idesc->id_filesize = dp->di_size;
|
||||
if (SPECIAL(dp))
|
||||
return (KEEPON);
|
||||
dino = *dp;
|
||||
bcopy(dp, &dino, sizeof dino);
|
||||
for (ap = &dino.di_addr[0]; ap < &dino.di_addr[NDADDR]; ap++) {
|
||||
if (*ap == 0)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user