From: Eric Biggers Date: Sun, 31 May 2015 21:33:04 +0000 (-0500) Subject: extract.c: add missing will_extract_dentry() check X-Git-Tag: v1.8.2~75 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=d820468f3c760006bbab61771ba608deb727c53f;hp=588b06dbb0267153119678118a9cd618bfa01c19 extract.c: add missing will_extract_dentry() check When skipping a dentry tree, not all dentries in that tree will necessarily be in the extraction list. --- diff --git a/src/extract.c b/src/extract.c index 417300b7..625224b3 100644 --- a/src/extract.c +++ b/src/extract.c @@ -580,8 +580,10 @@ dentry_reset_extraction_list_node(struct wim_dentry *dentry) static int dentry_delete_from_list(struct wim_dentry *dentry, void *_ignore) { - list_del(&dentry->d_extraction_list_node); - dentry_reset_extraction_list_node(dentry); + if (will_extract_dentry(dentry)) { + list_del(&dentry->d_extraction_list_node); + dentry_reset_extraction_list_node(dentry); + } return 0; }