[ramfs] Fix the false judgement in rmdir

This commit is contained in:
LI Qing 2023-03-16 11:06:44 +08:00 committed by Tate, Hongliang Tian
parent ee01113761
commit eb2c09cd13

View File

@ -454,7 +454,7 @@ impl Inode for RamInode {
if target.0.read().metadata.type_ != InodeType::Dir {
return_errno_with_message!(Errno::ENOTDIR, "rmdir on not dir");
}
if target
if !target
.0
.read()
.inner