mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-08 21:06:48 +00:00
[ramfs] Fix the false judgement in rmdir
This commit is contained in:
parent
ee01113761
commit
eb2c09cd13
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user