Describe the bug
When runs sudo-rs with malformed username, sudo-rs crashes with only simple backtrace error thread 'main panicked and called unwrap error.
To Reproduce
Steps to reproduce the behavior:
- Run command
sudo-rs -u $(head -n 30 /dev/random)
- Error shows like screenshot bellow
I tried adding RUST_BACKTRACE=full but the result wasn't really useful
Expected behavior
App shouldn't crash. It should show unknown user like original sudo
Additional way is to show invalid username instead
Environment:
- Linux distribution:
Ubuntu 25.04
sudo-rs version: sudo-rs 0.2.4
Describe the bug
When runs
sudo-rswith malformed username,sudo-rscrashes with only simple backtrace errorthread 'main panickedand called unwrap error.To Reproduce
Steps to reproduce the behavior:
sudo-rs -u $(head -n 30 /dev/random)I tried adding
RUST_BACKTRACE=fullbut the result wasn't really usefulExpected behavior
App shouldn't crash. It should show unknown user like original sudo
Additional way is to show invalid username instead
Environment:
Ubuntu 25.04sudo-rsversion:sudo-rs 0.2.4