23 months ago | Paul Boddie | raw files shortlog changelog graph | Avoid reloading the inode data again when testing the object type. | |
libe2access/lib/src/image.c (file) |
1.1 --- a/libe2access/lib/src/image.c Sat Oct 22 22:35:48 2022 +0200 1.2 +++ b/libe2access/lib/src/image.c Sat Oct 22 23:51:52 2022 +0200 1.3 @@ -606,7 +606,7 @@ 1.4 if (retval) 1.5 return retval; 1.6 1.7 - if (image_isdir_by_inode(fs, source)) 1.8 + if (LINUX_S_ISDIR(source_inode.i_mode)) 1.9 { 1.10 /* Update the link count for the target. */ 1.11