Alex Lyon
ce26f3ac0f
Use passwd and group from libc rather than custom definitions
2018-03-06 02:40:03 -08:00
Alex Lyon
ed91d55dc1
Remove crate_name attribute
2018-03-01 23:06:03 -08:00
Benjamin Sago
bd32f2134d
“Fix” some warnings
2017-09-22 12:54:56 +01:00
Stephen Demos
7c6ed6c340
set effective gid before setting effective uid in switch_user_group
2017-09-21 13:54:02 -07:00
Benjamin Sago
fd8992ed87
Remove mut from traits
...
The compiler complained that this would become a hard error in a future release (see rust-lang#35203)
2017-08-04 03:11:26 +01:00
Wesley Moore
ebdb20dcbb
Add support for OpenBSD
2017-07-18 08:03:48 +10:00
Ben S
439f3c4cce
0.5.1: Missing method for mock groups
2016-02-10 15:19:23 +00:00
Ben S
0d9a3911fd
Add docs and fix warnings
2016-01-29 13:52:13 +00:00
Ben S
941068b99c
Add a full UsersCache constructor
2016-01-29 13:30:48 +00:00
Ben S
5c52889e09
Merge branch 'all-users' of https://github.com/polachok/rust-users into polachok-all-users
...
# Conflicts:
# src/lib.rs
I put the users iterator functionality into the 'base' module, where it belongs now (but didn't when the code was written)
2016-01-29 11:20:07 +00:00
Ben S
3e1a0b50d7
Add extra Debug info to alternate fmts
2016-01-29 10:38:16 +00:00
Ben S
32d340e128
Add Debug impls
2016-01-28 17:15:27 +00:00
Ben S
d65d2180d9
Add change and expire accessors
2016-01-28 16:06:54 +00:00
Ben S
e1f906d97c
Add missing lints and documentation
2016-01-28 15:52:53 +00:00
Ben S
cb2919660b
Remove unused imports
2016-01-28 15:40:53 +00:00
Ben S
b5c4d07f6b
Replace group fields with accessors, too
...
This does the same thing: it hides the fact that a group's name is actually within an Arc.
2016-01-28 15:39:04 +00:00
Ben S
b6ef295697
Make group members OS-dependent
2016-01-28 15:27:36 +00:00
Ben S
fefddc4a76
Replace User fields with getters
...
The name() accessor is able to hide the fact that the user's actual name string is hidden in an Arc. (The Arc is still available, since it's needed for caching)
2016-01-28 15:04:22 +00:00
Ben S
305b37e8c2
Ignore breaking test on Linux
2016-01-28 14:13:25 +00:00
Ben S
56e5e17bf4
Add missing impl for BSD extras
2016-01-28 14:07:18 +00:00
Ben S
1c7d73c01c
Move *all* the OS functionality inside modules
2016-01-28 13:07:15 +00:00
Ben S
d5a02504db
Have Users work with its OS-dependent fields
...
Everything relating to home directories and shell paths are now done in the UserExtras struct instead.
I moved the OS module into the base module (and re-exported it in lib) because it's a "sub"-module of base—it can't work without the structs in base.
2016-01-28 08:52:13 +00:00
Ben S
361bf319eb
Result -> IOResult
2016-01-27 19:44:41 +00:00
Ben S
5ac78b90f3
Expand doc comments in switch module
2016-01-27 19:44:12 +00:00
Ben S
8cfb4a0858
At least parse the switch_user_group test
...
It won't run, but it can at least be analysed to see if it works!
2016-01-27 19:41:17 +00:00