mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-09 13:26: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 {
|
if target.0.read().metadata.type_ != InodeType::Dir {
|
||||||
return_errno_with_message!(Errno::ENOTDIR, "rmdir on not dir");
|
return_errno_with_message!(Errno::ENOTDIR, "rmdir on not dir");
|
||||||
}
|
}
|
||||||
if target
|
if !target
|
||||||
.0
|
.0
|
||||||
.read()
|
.read()
|
||||||
.inner
|
.inner
|
||||||
|
Loading…
x
Reference in New Issue
Block a user