]> wimlib.net Git - wimlib/blobdiff - src/extract.c
wimlib.h: Update docs and adjust error codes
[wimlib] / src / extract.c
index 9c460e968d43896176bd6d1f48bff07e290a527a..88b277ac080fed49a61a40cb7a0aa52c6b487696 100644 (file)
@@ -1945,6 +1945,15 @@ do_feature_check(const struct wim_features *required_features,
                return WIMLIB_ERR_UNSUPPORTED;
        }
 
+       if ((extract_flags & WIMLIB_EXTRACT_FLAG_STRICT_SYMLINKS) &&
+           required_features->symlink_reparse_points &&
+           !(supported_features->symlink_reparse_points ||
+             supported_features->reparse_points))
+       {
+               ERROR("Extracting symbolic links is not supported in %"TS, mode);
+               return WIMLIB_ERR_UNSUPPORTED;
+       }
+
        if ((extract_flags & WIMLIB_EXTRACT_FLAG_SYMLINK) &&
            !supported_features->symlink_reparse_points)
        {