]> wimlib.net Git - wimlib/blobdiff - src/unix_capture.c
Add new helper function for attaching newly scanned dentry tree
[wimlib] / src / unix_capture.c
index 9b3ea4fedfef72593b3ff72fbfe80502c005f091..b56c55db1a676ab8997428bebf9b1919cf5d5ee1 100644 (file)
@@ -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;