Fix a dangling symlink bug in remove_dir_all() on Solaris
This fixes a handful of long-failing tests.
This commit is contained in:
parent
4596c71fc5
commit
9427bb36f6
1 changed files with 1 additions and 6 deletions
|
|
@ -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())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue