Skip to content

Commit f991c63

Browse files
committed
plugins_available -> plugins_installed
1 parent 8a8fbb5 commit f991c63

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cargo-afl/src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub fn archive_file_path() -> Result<PathBuf> {
6666
afl_llvm_dir().map(|path| path.join("libafl-llvm-rt.a"))
6767
}
6868

69-
pub fn plugins_available() -> Result<bool> {
69+
pub fn plugins_installed() -> Result<bool> {
7070
let afl_llvm_dir = afl_llvm_dir()?;
7171
for result in afl_llvm_dir
7272
.read_dir()

cargo-afl/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub struct Args {
3838

3939
pub fn config(args: &Args) -> Result<()> {
4040
let archive_file_path = common::archive_file_path()?;
41-
if !args.force && archive_file_path.exists() && args.plugins == common::plugins_available()? {
41+
if !args.force && archive_file_path.exists() && args.plugins == common::plugins_installed()? {
4242
let version = common::afl_rustc_version()?;
4343
bail!(
4444
"AFL LLVM runtime was already built for Rust {version}; run `cargo afl config --build \

cargo-afl/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ fn command_with_afl_version() -> clap::Command {
182182

183183
(|| -> Option<()> {
184184
let afl_version = afl_version()?;
185-
let with_plugins = common::plugins_available().ok()?;
185+
let with_plugins = common::plugins_installed().ok()?;
186186

187187
let subcmd = command.find_subcommand_mut("afl").unwrap();
188188
let ver = format!(
@@ -292,7 +292,7 @@ where
292292
environment_variables.insert("ASAN_OPTIONS", asan_options);
293293
environment_variables.insert("TSAN_OPTIONS", tsan_options);
294294

295-
let has_plugins = common::plugins_available().unwrap();
295+
let has_plugins = common::plugins_installed().unwrap();
296296
if require_plugins || has_plugins {
297297
// Make sure we are on nightly for the -Z flags
298298
assert!(

0 commit comments

Comments
 (0)