mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-16 18:08:21 +00:00
83c0b819bc
On macOS, /var is a symlink to /private/var. The scanner's local_disk.path() returns the canonicalized path, but tempfile::tempdir() returns the non-canonical /var/... path. This caused the drive field assertion in test_scan_folder_corrupt_xl_meta_stops_erasure_data_dir_descent to fail with a path mismatch. Fix by canonicalizing temp_dir only for the drive field comparison, while keeping the non-canonical path for metadata_path and failed_objects which use the original directory walk paths.