diff options
| author | van Hauser <vh@thc.org> | 2020-03-23 18:19:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-23 18:19:20 +0100 |
| commit | 82432195a8e46f67394b528fbfe8749903c7f064 (patch) | |
| tree | 1289a776f96b7af6fed7b1c61509368de14aeb46 /afl-cmin | |
| parent | 0e1d82dd9f5cfe48b294e876924acea2f5094f01 (diff) | |
| parent | 77b81e7361f7286cc3e0174b87ae5facb9f1290d (diff) | |
| download | afl++-82432195a8e46f67394b528fbfe8749903c7f064.tar.gz | |
Merge pull request #266 from AFLplusplus/dev
Diffstat (limited to 'afl-cmin')
| -rwxr-xr-x | afl-cmin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/afl-cmin b/afl-cmin index d96a103f..d38e7a97 100755 --- a/afl-cmin +++ b/afl-cmin @@ -264,7 +264,7 @@ BEGIN { if (target_bin && !exists_and_is_executable(target_bin)) { - "type "target_bin" | awk '{print $NF}' 2>/dev/null" | getline tnew + "command -v "target_bin" 2>/dev/null" | getline tnew if (!tnew || !exists_and_is_executable(tnew)) { print "[-] Error: binary '"target_bin"' not found or not executable." > "/dev/stderr" exit 1 @@ -313,7 +313,7 @@ BEGIN { if (0 == system("test -f afl-cmin")) { showmap = "./afl-showmap" } else { - "type afl-showmap | awk '{print $NF}' 2>/dev/null" | getline showmap + "command -v afl-showmap 2>/dev/null" | getline showmap } } else { showmap = ENVIRON["AFL_PATH"] "/afl-showmap" |
