sudo-rs
sudo-rs copied to clipboard
Safety comments: PR1
trafficstars
It's tedious to do, but let's have proper # Safety and // SAFETY comments all across the board.
This PR addresses some low-hanging fruit:
- simple routines from
system pamandcutils.- file locking
- this PR also replaces our raw
sys callwithlibc::close_range, since that is available now.
This is related to #861 but does not close that issue. I've broken it up in multiple PR's for easier reviewing.