We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aebafce commit ce7fc89Copy full SHA for ce7fc89
build.rs
@@ -31,6 +31,4 @@ fn main() {
31
println!("cargo:rerun-if-changed=build.rs");
32
33
println!("cargo:rustc-link-lib=pam");
34
-
35
- println!("cargo:rustc-env=DEFAULT_PATH=/usr/bin:/bin:/usr/sbin:/sbin");
36
}
src/sudoers/mod.rs
@@ -259,7 +259,7 @@ impl Sudoers {
259
260
let path = resolve_path(
261
path,
262
- &std::env::var("PATH").unwrap_or(env!("DEFAULT_PATH").to_string()),
+ &std::env::var("PATH").unwrap_or(env!("SUDO_PATH_DEFAULT").to_string()),
263
);
264
if let Some(path) = path {
265
return Some(path);
0 commit comments