We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e44897 commit f5bdc81Copy full SHA for f5bdc81
cap-primitives/src/windows/fs/open_unchecked.rs
@@ -48,7 +48,7 @@ pub(crate) fn open_unchecked(
48
// them as a distinct error.
49
if metadata.file_type().is_symlink() {
50
return Err(OpenUncheckedError::Symlink(
51
- io::Error::new(io::ErrorKind::Other, "symlink encountered"),
+ io::Error::from_raw_os_error(winerror::ERROR_STOPPED_ON_SYMLINK as i32),
52
if metadata.file_attributes() & FILE_ATTRIBUTE_DIRECTORY
53
== FILE_ATTRIBUTE_DIRECTORY
54
{
0 commit comments