Fixed bug in fsck: using bcopy() instead of structure assignment.

File exception.c converted to indent4 format.
This commit is contained in:
Sergey
2015-02-13 21:05:03 -08:00
parent 42665ba3b3
commit 0005e7d7bf
3 changed files with 434 additions and 437 deletions

View File

@@ -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)

View File

@@ -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;