memorysafety / sudo-rs

A memory safe implementation of sudo and su.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sudoers: support `@includedir`

japaric opened this issue · comments

relevant tests:

#[test]
fn absolute_path() -> Result<()> {
let env = Env("@includedir /etc/sudoers.d")
.file("/etc/sudoers.d/a", SUDOERS_ALL_ALL_NOPASSWD)
.build()?;
Command::new("sudo")
.arg("true")
.output(&env)?
.assert_success()

and the 17 tests that come after it