Benign crates 1,456,953 installs Download

aur-fetch 0.5.0

“A libary for downloading and diffing AUR packages”

Constructs a Rust command using imported CommandImports Rust process::Command
SHA-25692389f606f67e895902098c20b93ab4b993be11d9d81a7b1fc96845a36d81d28

Evidence

Imports Rust process::Command lines 8–23
8use std::os::unix::fs::symlink;
9use std::path::{Path, PathBuf};
10use std::process::{Command, Output};
11use std::rc::Rc;
12
⋯11 lines
Constructs a Rust process command lines 119–126
119:26… pkg.as_ref());
120
121 let command = if is_git_repo {
122 fetched.push(pkg);
123 Command::new(&self.git)
124 .current_dir(&self.clone_dir.join(&pkg))
125 .args(&["fetch", "-v"])
126 …
Named Rust file writer writes all bytes lines 224–230
224:5… path.set_extension("diff");
225
226 let mut file = File::create(path)?;
227
228 file.write_all(&git_log(&self.git, self.clone_dir.join(pkg.as_ref()), false)?.stdout)?;
229 file.write_all(&[b'\n'])?;
230 file …
Rust Command captures child output lines 314–324
314:54… S, path: P, args: &[&str]) -> Result<Output> {
315 let output = Command::new(git.as_ref())
316 .current_dir(path.as_ref())
317 .args(args)
⋯7 lines
Rust Command spawns a child process lines 332–343
332:55… it: S, path: P, args: &[&str]) -> Result<()> {
333 let status = Command::new(git.as_ref())
334 .current_dir(path.as_ref())
335 .args(args)
⋯8 lines

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.