1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 20:17:45 +00:00

WIP Trying to diagnose 'invalid group: 1001:121' error in CI environment

This commit is contained in:
Jeffrey Finkelstein 2022-05-09 20:29:11 -04:00 committed by Sylvestre Ledru
parent 163df8abc1
commit f56903493c

View file

@ -220,7 +220,8 @@ fn parse_spec(spec: &str, sep: char) -> UResult<(Option<u32>, Option<u32>)> {
Ok(g) => g.gid, Ok(g) => g.gid,
Err(_) => match group.parse() { Err(_) => match group.parse() {
Ok(gid) => gid, Ok(gid) => gid,
Err(_) => { Err(e) => {
eprintln!("error {}, user {}, group {}, uid {:?}", e, user, group, uid);
return Err(USimpleError::new( return Err(USimpleError::new(
1, 1,
format!("invalid group: {}", spec.quote()), format!("invalid group: {}", spec.quote()),