Map ERROR_CANT_RESOLVE_FILENAME to ErrorKind::FilesystemLoop

This commit is contained in:
Pavel Grigorenko 2024-09-11 00:18:23 +03:00
parent 33855f80d4
commit 49b3df9245

View File

@ -122,6 +122,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {
c::ERROR_NOT_SAME_DEVICE => return CrossesDevices,
c::ERROR_TOO_MANY_LINKS => return TooManyLinks,
c::ERROR_FILENAME_EXCED_RANGE => return InvalidFilename,
c::ERROR_CANT_RESOLVE_FILENAME => return FilesystemLoop,
_ => {}
}