We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 06d843f + 5c72d87 commit ae3c51fCopy full SHA for ae3c51f
1 file changed
src/uu/id/src/id.rs
@@ -468,7 +468,7 @@ fn pretty(possible_pw: Option<Passwd>) {
468
"{}",
469
p.belongs_to()
470
.iter()
471
- .map(|&gr| entries::gid2grp(gr).unwrap())
+ .map(|&gr| entries::gid2grp(gr).unwrap_or_else(|_| gr.to_string()))
472
.collect::<Vec<_>>()
473
.join(" ")
474
);
@@ -508,7 +508,7 @@ fn pretty(possible_pw: Option<Passwd>) {
508
entries::get_groups_gnu(None)
509
.unwrap()
510
511
512
513
514
0 commit comments