Fix crash on unknown groups

This commit is contained in:
Přemysl Eric Janouch 2018-12-01 15:57:35 +01:00
parent aae9c392fa
commit 7174b507d3
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ fun make_entry (const struct dirent *f) -> entry {
: apply_attrs (to_wstring (info.st_uid), 0);
auto grp = g.gnames.find (info.st_gid);
e.cols[entry::GROUP] = (grp != g.unames.end ())
e.cols[entry::GROUP] = (grp != g.gnames.end ())
? apply_attrs (to_wide (grp->second), 0)
: apply_attrs (to_wstring (info.st_gid), 0);