ntfs capture: can no longer get DOS name from multi-linked files
[wimlib] / src / ntfs-capture.c
index ad56ba75b63afba455328676b8af21f53e495c58..ac7648a372e0e6e3d7561544b71dcb92ea86aaed 100644 (file)
@@ -575,13 +575,16 @@ static int build_dentry_tree_ntfs_recursive(struct wim_dentry **root_p,
                        if (ret != 0)
                                return ret;
                } else {
+                       if (
                #ifdef ENODATA
-                       if (errno != ENODATA) {
+                           errno != ENODATA &&
+               #endif
+                           errno != EMLINK
+                           ) {
                                ERROR_WITH_ERRNO("Error getting DOS name "
                                                 "of `%s'", path);
                                return WIMLIB_ERR_NTFS_3G;
                        }
-               #endif
                }
        }