Fix a dangling symlink bug in remove_dir_all() on Solaris

This fixes a handful of long-failing tests.
This commit is contained in:
Danek Duvall 2017-08-03 14:55:01 -07:00
parent 4596c71fc5
commit 9427bb36f6

View File

@ -284,12 +284,7 @@ impl DirEntry {
lstat(&self.path())
}
#[cfg(target_os = "solaris")]
pub fn file_type(&self) -> io::Result<FileType> {
stat(&self.path()).map(|m| m.file_type())
}
#[cfg(target_os = "haiku")]
#[cfg(any(target_os = "solaris", target_os = "haiku"))]
pub fn file_type(&self) -> io::Result<FileType> {
lstat(&self.path()).map(|m| m.file_type())
}