trifectatechfoundation / sudo-rs

A memory safe implementation of sudo and su.
Other
2.9k stars 79 forks source link

Emit the right message if temporary file is deleted #665

Closed pvdrz closed 1 year ago

pvdrz commented 1 year ago

Describe the changes done on this pull request This PR updates visudo so it emits unable to re-open temporary file (/etc/sudoers.tmp), /etc/sudoers unchanged when sudoers.tmp is deleted while editing.

Blocked by #664

Pull Request Checklist

github-actions[bot] commented 1 year ago

Number of dependencies and binary size impact report

Metric main PR #665 Delta
Direct dependencies 3 3 -
Total dependencies 4 4 -
Binary size 979 KiB 983.1 KiB +0.4%
Text size 571.5 KiB 574.4 KiB +0.5%
Dependencies diff ```diff └─ sudo-rs [v0.2.0-dev.20230703] ├─ glob [v0.3.1] ├─ libc [v0.2.147] └─ log [v0.4.19] ```