Lines Matching refs:gid

44                     info.gid = arg.clone();  in check()
99 if info.group.is_empty() && info.gid.is_empty() { in check_group_gid()
112 let (groupname, gid) = (data[0].to_string(), data[2].to_string()); in check_group_gid()
114 if !info.gid.is_empty() && info.gid != gid { in check_group_gid()
116 format!("The gid of the group [{}] isn't {}", info.group, info.gid), in check_group_gid()
119 } else if info.gid.is_empty() || info.gid == gid { in check_group_gid()
120 info.gid = gid; in check_group_gid()
125 if !info.gid.is_empty() && info.gid == gid { in check_group_gid()
128 format!("The gid of the group [{}] isn't {}", info.group, info.gid), in check_group_gid()
150 let mut gid = (max_gid + 1).to_string(); in check_group_gid() localVariable
157 if !info.gid.is_empty() { in check_group_gid()
158 gid = info.gid.clone(); in check_group_gid()
160 info.gid = gid.clone(); in check_group_gid()
165 .arg(gid.clone()) in check_group_gid()
286 gid: info.new_gid.clone(), in check()
518 gid: String::new(), in check()
526 if let Some(gid) = cmd.options.get(&CmdOption::Gid) { in check()
527 info.gid = gid.clone(); in check()
540 gid: Some(info.gid.clone()), in check()
562 if let Some(gid) = check_groupname(cmd.groupname.clone()) { in check()
564 Self::is_main_group(gid); in check()
585 fn is_main_group(gid: String) { in is_main_group()
592 if field[3] == gid { in is_main_group()
652 info.gid = field[2].to_string(); in check_group_file()
698 gid: Option<String>, field
794 if let Some(gid) = &group_field.gid { in scan_group()
796 let r = gid.parse::<u32>(); in scan_group()
799 format!("Gid {} is invalid", gid), in scan_group()
803 if field[2] == gid { in scan_group()
809 format!("GID {} already exists", gid), in scan_group()
821 if let Some(gid) = &group_field.gid { in scan_group()
824 format!("GID {} doesn't exist", gid), in scan_group()