sudo-rs
sudo-rs copied to clipboard
Create a newtype for resolved paths
trafficstars
Currently the resolved status is recorded in a bool + std::path::Path. It's nicer to capture this in the type system (ex. Result<ResolvedPath, Path>). Or maybe even better to only reveal the resolvedpath to the caller if they can produce a reference to a Restrictions object as added protection.