1
0
mirror of https://github.com/containers/youki synced 2024-11-23 17:32:15 +01:00

Fix a typo where gid should be uid.

This commit is contained in:
yihuaf 2021-08-31 08:30:21 +02:00
parent c6065e67b1
commit a4ea9016b7

@ -177,7 +177,7 @@ fn lookup_map_binary(binary: &str) -> Result<Option<PathBuf>> {
pub fn write_uid_mapping(target_pid: Pid, rootless: Option<&Rootless>) -> Result<()> {
log::debug!("Write UID mapping for {:?}", target_pid);
if let Some(rootless) = rootless {
if let Some(uid_mappings) = rootless.gid_mappings {
if let Some(uid_mappings) = rootless.uid_mappings {
return write_id_mapping(
&format!("/proc/{}/uid_map", target_pid),
uid_mappings,