diff options
author | Přemysl Janouch <p@janouch.name> | 2018-12-01 15:57:35 +0100 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-12-01 15:57:35 +0100 |
commit | 7174b507d3fab2842143a7e58b87e44fe91009b2 (patch) | |
tree | a6e67d1f9b9de582afdd5644e5ca5e1058dae199 | |
parent | aae9c392fab706f5470c0d1d7089ec8fbb828eb2 (diff) | |
download | sdn-7174b507d3fab2842143a7e58b87e44fe91009b2.tar.gz sdn-7174b507d3fab2842143a7e58b87e44fe91009b2.tar.xz sdn-7174b507d3fab2842143a7e58b87e44fe91009b2.zip |
Fix crash on unknown groups
-rw-r--r-- | sdn.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |