2021-11-28 | Paul Boddie | raw files shortlog changelog graph | Added missing reference count increment when creating a file. | |
libe2access/lib/src/image.c (file) |
1.1 --- a/libe2access/lib/src/image.c Mon Oct 18 22:59:22 2021 +0200 1.2 +++ b/libe2access/lib/src/image.c Sun Nov 28 22:18:33 2021 +0100 1.3 @@ -70,6 +70,7 @@ 1.4 /* Populate the inode details. */ 1.5 1.6 image_set_metadata(&inode_file, 1, LINUX_S_IFREG | mode, uid, gid); 1.7 + inode_file.i_links_count++; 1.8 1.9 return ext2fs_write_new_inode(fs, *ino_file, &inode_file); 1.10 }