Ben S
68cd6d5da1
Fix bug about nonexistent groups in groups column
2014-06-27 12:46:08 +01:00
Ben S
b337f9174d
Highlight groups the user is a member of
...
First non-trivial change for a while... because this involves reading from the OS, we should cache as much as we can in memory. So, group membership checking is done immediately after reading a group name, as the group structure has already been populated.
2014-06-26 23:26:27 +01:00
Ben S
b5a1b24bda
Cache user and group names
...
I checked strace and it was reading /etc/passwd every time it needed to
look up a user or group. Now it only does it once per.
2014-06-21 17:50:37 +01:00
Ben S
6edf2c0d4d
Highlight the current user
2014-05-27 19:05:15 +01:00
Ben S
05b2d541ac
s/StrBuf/String/g
2014-05-26 11:08:33 +01:00
Ben S
fdf58e887b
Upgrade to latest Rust (s/~str/StrBuf/)
...
See https://github.com/mozilla/rust/pull/14310
2014-05-24 01:14:40 +01:00
Ben S
d76fee7328
Add user and group columns
...
This meant writing some libc interaction, which wasn't actually too bad.
2014-05-05 11:29:50 +01:00