diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-09-12 03:17:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-12 03:17:15 +0000 |
commit | 8e167c765da198a2e9895e387c4f75ff664d7bf0 (patch) | |
tree | a02284930e322a768704a854cd906ceca40b359b /src/sys/mod.rs | |
parent | adca7fdc3a92a50b5ea1b283d6d22234c93e5af1 (diff) | |
parent | 4d38456cab60843d212a62af7066ceac7bc6011e (diff) | |
download | nix-8e167c765da198a2e9895e387c4f75ff664d7bf0.zip |
Merge #1815
1815: Handle unacceptable name gracefully in {User,Group}::from_name r=asomers a=magicant
Calling `unwrap` on the result of `CString::new` may cause the current thread to panic, which is a bit surprising undocumented behavior. It would be more reasonable to treat the erroneous name as a non-existing user or group.
Co-authored-by: WATANABE Yuki <magicant@wonderwand.net>
Diffstat (limited to 'src/sys/mod.rs')
0 files changed, 0 insertions, 0 deletions