lints

`rustc` lints.
git clone https://git.philomathiclife.com/repos/lints
Log | Files | Refs | README

commit 20d8f4011713eb73efaacd0d1ead49ad6e6366f3
parent 0422f7a9f1dd5054551635e6f8f63ede85427761
Author: Zack Newman <zack@philomathiclife.com>
Date:   Sat,  6 Jun 2026 13:23:11 -0600

fix pledge

Diffstat:
Msrc/rustc.rs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/rustc.rs b/src/rustc.rs @@ -105,7 +105,7 @@ fn priv_sep<Never>() -> Result<PathBuf, Never> { /// `unveil(2)`s the file system for read-only permissions. /// Traverses `$PATH` to find `"rustc"`; when found, removes read permissions on the file system before /// `unveil(2)`ing `"rustc"` with execute permissions and `"/dev/null"` with read permissions. Last, -/// `pledge(2)`s `c"exec proc stdio unveil"`. +/// `pledge(2)`s `c"exec proc rpath stdio unveil"`. #[expect(unsafe_code, reason = "comment justifies correctness")] #[expect(clippy::option_if_let_else, reason = "false positive")] #[cfg(target_os = "openbsd")] @@ -158,7 +158,7 @@ fn priv_sep() -> Result<PathBuf, E> { .and_then(|()| { Permissions::unveil_raw(&rustc, c"x").and_then(|()| { Permissions::unveil_raw(c"/dev/null", c"r").and_then(|()| { - Promises::pledge_raw(c"exec proc stdio unveil") + Promises::pledge_raw(c"exec proc rpath stdio unveil") .map(|()| rustc) }) })