sudo-rs icon indicating copy to clipboard operation
sudo-rs copied to clipboard

Create a newtype for resolved paths

Open squell opened this issue 4 months ago • 0 comments
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.

squell avatar Jul 11 '25 09:07 squell