upstream fixes are pending for symlink_create & nofollow_errors on windows

This commit is contained in:
Pat Hickey
2021-02-02 16:16:22 -08:00
parent cd02e5a942
commit 857ef411b5
2 changed files with 4 additions and 2 deletions

View File

@@ -199,8 +199,9 @@ mod wasi_tests {
"fd_flags_set",
"path_filestat",
"symlink_filestat",
// waiting on DirExt::delete_file_or_symlink
"symlink_create",
// upstream fixes pending:
"symlink_create", // cap-std #149
"nofollow_errors", // cap-std #149 and #150
// Trailing slash related bugs
"interesting_paths",
"path_rename_file_trailing_slashes",

View File

@@ -173,6 +173,7 @@ impl TryFrom<std::io::Error> for types::Errno {
winerror::ERROR_DIRECTORY => Some(types::Errno::Notdir),
winerror::ERROR_ALREADY_EXISTS => Some(types::Errno::Exist),
winerror::ERROR_STOPPED_ON_SYMLINK => Some(types::Errno::Loop),
winerror::ERROR_DIRECTORY_NOT_SUPPORTED => Some(types::Errno::Isdir),
_ => None,
}
}