Commit Graph

37 Commits

Author SHA1 Message Date
MggMuggins bc0dc6488b Update Cargo.lock; Fix su 2018-01-29 20:44:08 -06:00
MggMuggins 5e53b4b161 Port to redox_users break-api
All the utilities use the new API I defined in mu recent PR to
redox_users. `su`'s behavior was also fixed.

I also updated Cargo.toml (removing unused deps). This may require
another commit after my first PR is merged in order to appropriately
update Cargo.lock and make sure everything builds.
2018-01-29 16:39:52 -06:00
Jose Narvaez 0e327d8124 Using new 'unwrap_or_exit' from libextra. 2017-12-15 18:31:25 +00:00
MggMuggins 0b8f40c234 Add additional flags to user and groupadd; Update Cargo files 2017-12-09 22:06:47 -06:00
Jose Narvaez cf8f7f3a25 Oops, commited local paths. Fixed. 2017-12-01 23:44:03 +00:00
Jose Narvaez fd81487760 Updated to new error types from redox_users and simplefied the inspection and downcasting of the error on login. 2017-12-01 23:16:14 +00:00
Jose Narvaez 13681c3442 Moved to new error hadling of . 2017-11-30 22:41:57 +00:00
MggMuggins 65817077ee Cargo.lock update 2017-11-28 22:10:45 -06:00
MggMuggins d9d3635916 Implemented useradd; groupadd fix 2017-11-28 21:39:20 -06:00
MggMuggins 8fffeb1e57 Implemented groupadd, fix for passwd compile 2017-11-26 16:53:37 -06:00
Jose Narvaez 0ed14bec6d Migrated to redox_users and some refactoring and docs.
Details

- Updated dependencies with `redox_users`.
- Migrated all user/group dependent functionality to calls to `redox_users`.
- Added top level documentation to the crate.
- Added a `spawn_shell` function to reuse a bit of code.
- `login`: Handled the case of an invalid login with "Login incorrect" (as in BSD).
- `passwd`: Refactored a bit and used `eprintln!` where possible.
- `su`: Refactored a bit and used `eprintln!` where possible.
- `sudo`: Refactored a bit to simplify logic also used `eprintln!` where possible.
- `whoami`: Refactored a bit and used `eprintln!/println!` where possible.
- Also added myself on the AUTHORS section :).
2017-11-08 22:49:00 +00:00
Jeremy Soller 1f9042f47c Update Cargo.lock 2017-10-11 20:54:45 -06:00
Jeremy Soller a1d096b0bf Update Cargo.lock 2017-10-04 20:29:41 -06:00
Jeremy Soller bc31f4d490 Update Cargo.lock and Cargo.toml 2017-08-19 14:51:08 -06:00
Jeremy Soller aeda1ae4b4 Update Cargo.lock 2017-08-02 21:13:16 -06:00
Jeremy Soller f6fd552f45 Replace termion 2017-08-02 19:42:00 -06:00
Jeremy Soller d0e22dd165 Update Cargo.lock 2017-07-29 08:25:08 -06:00
Jeremy Soller 1725b377cd Add Cargo.lock file 2017-07-26 08:04:04 -06:00
Jeremy Soller 5f9ff4d19e Remove cargo.lock 2016-11-16 21:32:05 -07:00
Jeremy Soller d44639145b Update syscall 2016-11-15 17:05:49 -07:00
Jeremy Soller 6305f222ad Update syscall 2016-11-15 16:01:51 -07:00
Jeremy Soller ba16f79ada Update syscall 2016-11-14 12:16:28 -07:00
Jeremy Soller b59deda452 Update syscall 2016-11-10 21:08:56 -07:00
Jeremy Soller 61203b6a72 Update libc 2016-11-10 11:29:36 -07:00
Jeremy Soller 69a21ddd1f Use upstream rand! 2016-11-09 10:31:31 -07:00
Jeremy Soller 7511f6dd5a Update rand 2016-11-07 11:27:45 -07:00
Jeremy Soller 24859cb7a6 Update syscall 2016-11-04 13:47:32 -06:00
Jeremy Soller 8a7f4bba83 Update libc 2016-11-03 17:39:57 -06:00
Jeremy Soller 98d7b64a16 Update libc 2016-11-03 17:17:07 -06:00
Jeremy Soller d765b381f8 Update redox_syscall 2016-11-03 15:09:46 -06:00
Jeremy Soller f27ed41bcb Use fmap, fix syscall crate name 2016-11-02 19:47:24 -06:00
Jeremy Soller 5ae17129d3 Use syscall from git 2016-10-31 13:33:22 -06:00
Jeremy Soller ad314add6a Update termion 2016-10-26 13:55:29 -06:00
Jeremy Soller 46631df4f0 Use OsRng to get random data for seed 2016-10-24 14:07:55 -06:00
Jeremy Soller e0fe388ccf Switch to argon2: WIP 2016-10-24 12:22:13 -06:00
Jeremy Soller a05b8f4d25 Update libc 2016-10-15 21:12:03 -06:00
Jeremy Soller 860c1f5f25 Initial commit 2016-10-07 10:19:08 -06:00