36 Commits

Author SHA1 Message Date
Ben S 4c966938db Achieve independence from gated features!
This commit makes rust-users runnable on Rust Stable and Beta!

- ToOwned in the collections crate can be imported by `std::borrow::ToOwned`
  instead, removing the collections flag.
- `as_ref` on raw pointers can be null-checked manually, then dereferenced,
  removing the ptr_as_ref flag. The new code reads better, too.
2015-08-02 16:41:19 +01:00
Ben S de6a1601db Update broken comment link... 2015-08-02 15:35:25 +01:00
Konstantin Stepanov 5cab91cf73 fix docs for switch_user_group 2015-07-23 01:40:53 +03:00
Konstantin Stepanov 7c19c92fd7 switch effective uid only 2015-07-21 12:55:44 +03:00
Konstantin Stepanov 184bd434e1 fixes 2015-07-21 12:19:45 +03:00
Konstantin Stepanov d52a2bcd8c update mock 2015-07-21 11:48:49 +03:00
Konstantin Stepanov fd73810619 security warnings 2015-07-21 11:43:10 +03:00
Konstantin Stepanov 0cabf243bd add switch user/group functionality 2015-07-21 11:39:32 +03:00
Konstantin Stepanov 6e2e00f287 add functions to set user and group 2015-07-21 11:32:22 +03:00
Konstantin Stepanov f5d3838e75 add methods to get effective user and group info 2015-07-21 11:22:58 +03:00
Konstantin Stepanov 825062139b import other gid/uid functions 2015-07-21 11:07:56 +03:00
Florian Wilkens 35903983ff Added missing feature flag and remove obsolete one 2015-06-20 16:22:59 +02:00
Michael Neumann 968fc14738 Fix build for DragonFly BSD 2015-06-16 13:41:54 +02:00
Florian Wilkens 3862ae8d06 Fixed _by_name functions to correctly use CStrings and added corresponding tests. 2015-05-13 15:40:38 +02:00
Florian Wilkens 34a4c66da3 Removed unused import warning on linux 2015-05-13 15:12:00 +02:00
Ben S 1c7cdad0ff Have different c_passwd structs for different OSes 2015-05-05 20:16:17 +01:00
Florian Wilkens 5d955e13a5 Added home_dir and shell to User struct 2015-05-04 00:53:24 +02:00
Florian Wilkens 914f5e3983 Fixed struct layout 2015-05-04 00:43:44 +02:00
Ben S 8a9d6f90c9 Start using uid_t and gid_t
They were i32 and u32 before. Or was that the other way around? Anyway, this changes the interface, so I'm bumping the version.
2015-05-03 12:42:37 +01:00
Ben S 518a02d84f Get rid of un-needed feature flags 2015-05-03 12:10:42 +01:00
Benjamin Sago 249436c40a Remove Copy impl on internal types 2015-04-03 23:52:15 +02:00
Mika Attila d734873540 Update to latest Rust 2015-03-25 21:35:35 +01:00
Ben S f1003399ef Tabs are ew. 2015-03-11 17:21:46 +00:00
Ben S 004e1405fc Use to_owned and pass slices to search functions
Getting this in here before the Entry reform hopefully allows the interface to stay the same but the code to improve!
2015-03-11 17:21:22 +00:00
Ben S a1d1f2fa87 Upgrade to latest Rust
- c_str_to_bytes -> CStr
2015-03-11 17:14:09 +00:00