summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorDavid Knaack <davidkna@users.noreply.github.com>2021-07-16 21:20:59 +0200
committerGitHub <noreply@github.com>2021-07-16 15:20:59 -0400
commit1eaf996a3645704910ea30b0ee19a97ab4f1daf6 (patch)
tree91345555c552039d24615f2251bfd3db9187c6e6 /src/main.rs
parente1fc137dc9b7fe4f992884b9984d8c1dba103370 (diff)
fix(windows): avoid inadvertly running exes from cwd (#2885)
On Windows when running commands with their name instead of the path with Command::new, executable with that name from the current working directory will be executed. This PR replaces all instances of Command::new with a new create_command function which will first resolve any executable paths and avoid this issue.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 20b9d4113..f1bce8fe6 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,3 +1,5 @@
+#![warn(clippy::disallowed_method)]
+
use clap::crate_authors;
use std::io;
use std::time::SystemTime;