X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Funix_capture.c;h=2843c36a6c698204c4aace20f32ebb6bc435f008;hp=9b3ea4fedfef72593b3ff72fbfe80502c005f091;hb=8b709192cd2811b83c248fbe61ca4f11ee9de797;hpb=b87b3beaacd32c045ab77dc56c6b90677d882830 diff --git a/src/unix_capture.c b/src/unix_capture.c index 9b3ea4fe..2843c36a 100644 --- a/src/unix_capture.c +++ b/src/unix_capture.c @@ -196,8 +196,7 @@ unix_scan_directory(struct wim_dentry *dir_dentry, full_path[full_path_len] = '\0'; if (ret) break; - if (child) - dentry_add_child(dir_dentry, child); + attach_scanned_tree(dir_dentry, child, params->blob_table); } closedir(dir); return ret; @@ -389,8 +388,7 @@ unix_build_dentry_tree_recursive(struct wim_dentry **tree_ret, } ret = inode_table_new_dentry(params->inode_table, relpath, - stbuf.st_ino, stbuf.st_dev, - S_ISDIR(stbuf.st_mode), &tree); + stbuf.st_ino, stbuf.st_dev, false, &tree); if (ret) goto out;