Skip to content

Commit

Permalink
stdbuf: add missing "&"
Browse files Browse the repository at this point in the history
  • Loading branch information
cakebaker authored Aug 21, 2023
1 parent c9f8375 commit e899d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uu/stdbuf/src/stdbuf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
let command_params: Vec<&str> = command_values.map(|s| s.as_ref()).collect();

let mut tmp_dir = tempdir().unwrap();
let (preload_env, libstdbuf) = get_preload_env(tmp_dir).map_err_context(String::new)?;
let (preload_env, libstdbuf) = get_preload_env(&tmp_dir).map_err_context(String::new)?;
command.env(preload_env, libstdbuf);
set_command_env(&mut command, "_STDBUF_I", &options.stdin);
set_command_env(&mut command, "_STDBUF_O", &options.stdout);
Expand Down

0 comments on commit e899d1b

Please sign in to comment.