Merge remote-tracking branch 'origin/main' into pch/wasi_error_handling
This commit is contained in:
@@ -23,7 +23,7 @@ pub(crate) fn get(
|
||||
// Extract path as &str from guest's memory.
|
||||
let path = path_ptr.as_str()?;
|
||||
|
||||
log::trace!(" | (path_ptr,path_len)='{}'", &*path);
|
||||
tracing::trace!(path = &*path);
|
||||
|
||||
if path.contains('\0') {
|
||||
// if contains NUL, return Ilseq
|
||||
@@ -56,7 +56,7 @@ pub(crate) fn get(
|
||||
loop {
|
||||
match path_stack.pop() {
|
||||
Some(cur_path) => {
|
||||
log::debug!("path_get cur_path = {:?}", cur_path);
|
||||
tracing::debug!(cur_path = tracing::field::display(&cur_path), "path get");
|
||||
|
||||
let ends_with_slash = cur_path.ends_with('/');
|
||||
let mut components = Path::new(&cur_path).components();
|
||||
@@ -74,7 +74,7 @@ pub(crate) fn get(
|
||||
path_stack.push(tail);
|
||||
}
|
||||
|
||||
log::debug!("path_get path_stack = {:?}", path_stack);
|
||||
tracing::debug!(path_stack = tracing::field::debug(&path_stack), "path_get");
|
||||
|
||||
match head {
|
||||
Component::Prefix(_) | Component::RootDir => {
|
||||
@@ -130,7 +130,7 @@ pub(crate) fn get(
|
||||
link_path.push('/');
|
||||
}
|
||||
|
||||
log::debug!(
|
||||
tracing::debug!(
|
||||
"attempted symlink expansion link_path={:?}",
|
||||
link_path
|
||||
);
|
||||
@@ -162,7 +162,7 @@ pub(crate) fn get(
|
||||
link_path.push('/');
|
||||
}
|
||||
|
||||
log::debug!(
|
||||
tracing::debug!(
|
||||
"attempted symlink expansion link_path={:?}",
|
||||
link_path
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user