81 Commits

Author SHA1 Message Date
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
Ben S 27cd0c9f50 Tiny fixes for latest Rust 2015-02-04 01:22:02 +00:00
Tshepang Lekhonkhobe 587775d2de doc: typo fix 2015-02-01 06:27:51 +02:00
Ben S 4621e12a12 Feature flags 2015-01-29 16:56:49 +00:00
Benjamin Sago 1dadb9066d Better way to display username 2015-01-09 23:32:41 +01:00
Benjamin Sago 71c03c5b50 Upgrade to latest Rust
- Silence warnings
- C-string changes
2015-01-09 23:22:53 +01:00