else, error messages using this path_info refer to the parent directory instead
of the actual file entry causing the problem. since this is just for
informational purposes, lossy conversion is acceptable.
Acked-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
self.feature_flags,
metadata,
file.as_raw_fd(),
- self.dir_stack.path(),
+ &self
+ .dir_stack
+ .path()
+ .join(file_name.to_string_lossy().to_string()),
&mut self.on_error,
)
}
self.feature_flags,
metadata,
file.as_raw_fd(),
- self.dir_stack.path(),
+ &self
+ .dir_stack
+ .path()
+ .join(file_name.to_string_lossy().to_string()),
&mut self.on_error,
)
}
Mode::empty(),
)?;
- apply(flags, metadata, fd.as_raw_fd(), path_info, on_error)
+ apply(
+ flags,
+ metadata,
+ fd.as_raw_fd(),
+ &path_info.join(file_name.to_string_lossy().to_string()),
+ on_error,
+ )
}
pub fn apply_initial_flags(