Improve handling of invalid filenames
[wimlib] / src / ntfs-3g_apply.c
index 0bf7989bd74231870d2c578ba2703eb300fc7d88..ffe3a8b0572253dc6ab8333d139f6a65db6e58d0 100644 (file)
@@ -538,6 +538,10 @@ apply_dentry_ntfs(struct wim_dentry *dentry, void *arg)
        struct wim_dentry *other;
        int ret;
 
+       ret = calculate_dentry_full_path(dentry);
+       if (ret)
+               return ret;
+
        /* Treat the root dentry specially. */
        if (dentry_is_root(dentry))
                return apply_root_dentry_ntfs(dentry, vol, w,