|
@ -181,7 +181,7 @@ where |
|
|
{
|
|
|
{
|
|
|
async fn run(&self, program: &str, args: &[&OsStr], input: &str) -> IoResult<Output> {
|
|
|
async fn run(&self, program: &str, args: &[&OsStr], input: &str) -> IoResult<Output> {
|
|
|
let raw_new_args = [self.user_name, "-s", "/usr/bin/env", "--", program];
|
|
|
let raw_new_args = [self.user_name, "-s", "/usr/bin/env", "--", program];
|
|
|
let mut new_args: Vec<&OsStr> = raw_new_args.iter().map(|s| s.as_ref()).collect();
|
|
|
|
|
|
|
|
|
let mut new_args: Vec<&OsStr> = raw_new_args.iter().map(AsRef::as_ref).collect();
|
|
|
new_args.extend_from_slice(args);
|
|
|
new_args.extend_from_slice(args);
|
|
|
self.command_runner.run("su", &new_args, input).await
|
|
|
self.command_runner.run("su", &new_args, input).await
|
|
|
}
|
|
|
}
|
|
|