Replace shell calls in debcargo to extract git information with git2 library crate.| Random Ramblings
In my previous post I used Exec::shell function from subprocess crate and passed it string generated by interpolating --author argument. This string was then run by the shell via Exec::shell. After publishing post I got ping on IRC by Jonas Smedegaard and Paul Wise that I should replace Exec::shell, as it might be prone to errors or vulnerabilities of shell injection attack. Indeed they were right, in hurry I did not completely read the function documentation which clearly mentions this fact.| copyninja.in
Post briefly describes running shell command pipelines in Rust using subprocess crate.| Random Ramblings