Page MenuHomeFreeBSD

D14163.diff
No OneTemporary

D14163.diff

Index: head/sbin/fsck_ffs/inode.c
===================================================================
--- head/sbin/fsck_ffs/inode.c
+++ head/sbin/fsck_ffs/inode.c
@@ -453,8 +453,10 @@
if (howmany(DIP(dp, di_size), sblock.fs_bsize) > UFS_NDADDR)
blks = UFS_NDADDR + UFS_NIADDR;
- else
+ else if (DIP(dp, di_size) > 0)
blks = howmany(DIP(dp, di_size), sblock.fs_bsize);
+ else
+ blks = 1;
inp = (struct inoinfo *)
Malloc(sizeof(*inp) + (blks - 1) * sizeof(ufs2_daddr_t));
if (inp == NULL)

File Metadata

Mime Type
text/plain
Expires
Sun, Aug 16, 4:10 PM (3 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36827834
Default Alt Text
D14163.diff (506 B)

Event Timeline