]> wimlib.net Git - wimlib/blobdiff - src/extract.c
Calculate SHA1 md of NTFS reparse points correctly
[wimlib] / src / extract.c
index 7fe23ef76d5380b15164f668549544f2b34c4d5e..d2f2a3547c1152381f1328e4d1f0189c8e1d691d 100644 (file)
@@ -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;
 
 }