X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fiterate_dir.c;h=451143a765f9015236345f40f01640e07d646a7a;hp=7dc63486618d4f93065c251ca7387829abdb8084;hb=7b587995ba7f2fb4e3a8d23f4be0ad91f1ab066a;hpb=3de1ec66f778edda19865482d685bc6f4e17faf7 diff --git a/src/iterate_dir.c b/src/iterate_dir.c index 7dc63486..451143a7 100644 --- a/src/iterate_dir.c +++ b/src/iterate_dir.c @@ -109,7 +109,7 @@ init_wimlib_dentry(struct wimlib_dir_entry *wdentry, struct wim_dentry *dentry, for (struct wim_dentry *d = dentry; !dentry_is_root(d); d = d->d_parent) wdentry->depth++; - if (inode->i_security_id >= 0) { + if (inode_has_security_descriptor(inode)) { struct wim_security_data *sd; sd = wim_get_current_security_data(wim); @@ -261,6 +261,11 @@ wimlib_iterate_dir_tree(WIMStruct *wim, int image, const tchar *_path, path = canonicalize_wim_path(_path); if (path == NULL) return WIMLIB_ERR_NOMEM; + + ret = wim_checksum_unhashed_blobs(wim); + if (ret) + return ret; + struct image_iterate_dir_tree_ctx ctx = { .path = path, .flags = flags,