Fix the issue of parent dentry lookup

This commit is contained in:
LI Qing 2023-03-02 13:14:40 +08:00 committed by Tate, Hongliang Tian
parent 129ffcbd80
commit 7326eb87a0
1 changed files with 2 additions and 2 deletions

View File

@ -258,7 +258,7 @@ impl FsResolver {
FsPathInner::CwdRelative(path) => {
let (dir, file_name) = split_path(path);
(
self.lookup_from_parent(&self.cwd, path, true)?,
self.lookup_from_parent(&self.cwd, dir, true)?,
String::from(file_name),
)
}
@ -266,7 +266,7 @@ impl FsResolver {
let (dir, file_name) = split_path(path);
let parent = self.lookup_from_fd(fd)?;
(
self.lookup_from_parent(&parent, path, true)?,
self.lookup_from_parent(&parent, dir, true)?,
String::from(file_name),
)
}