X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fextract.c;h=d2f2a3547c1152381f1328e4d1f0189c8e1d691d;hb=52cccded7706cd556f78ce7d2506937d2a216293;hp=7fe23ef76d5380b15164f668549544f2b34c4d5e;hpb=a2c56fd332b6c37026b24c8a216e0ff0bf140d80;p=wimlib diff --git a/src/extract.c b/src/extract.c index 7fe23ef7..d2f2a354 100644 --- a/src/extract.c +++ b/src/extract.c @@ -230,7 +230,8 @@ static int extract_symlink(const struct dentry *dentry, const char *output_path, const WIMStruct *w) { char target[4096]; - ssize_t ret = inode_readlink(dentry->d_inode, target, sizeof(target), w); + ssize_t ret = inode_readlink(dentry->d_inode, target, + sizeof(target), w, 0); if (ret <= 0) { ERROR("Could not read the symbolic link from dentry `%s'", dentry->full_path_utf8); @@ -458,7 +459,7 @@ WIMLIBAPI int wimlib_extract_image(WIMStruct *w, int image, w->lookup_table = joined_tab; } - for_lookup_table_entry(w->lookup_table, lte_free_extracted_file, NULL); + for_lookup_table_entry(w->lookup_table, lte_zero_extracted_file, NULL); if (image == WIM_ALL_IMAGES) { flags |= WIMLIB_EXTRACT_FLAG_MULTI_IMAGE; @@ -471,6 +472,7 @@ WIMLIBAPI int wimlib_extract_image(WIMStruct *w, int image, free_lookup_table(w->lookup_table); w->lookup_table = w_tab_save; } + for_lookup_table_entry(w->lookup_table, lte_free_extracted_file, NULL); return ret; }