diff options
author | hexcoder- <heiko@hexco.de> | 2020-03-19 00:15:48 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-03-19 00:15:48 +0100 |
commit | eca6bdb85d4e04ec60e77ca0592ea1d38489806f (patch) | |
tree | b5aa125ebdc0391347ebd0ac786c6344cb995a2c | |
parent | a3bd1c71ca4c3a8d2c94f20e42372b3f23ffe518 (diff) | |
download | afl++-eca6bdb85d4e04ec60e77ca0592ea1d38489806f.tar.gz |
afl-cmin: replace 'which' with 'type'
-rwxr-xr-x | afl-cmin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/afl-cmin b/afl-cmin index e48dc7d8..d96a103f 100755 --- a/afl-cmin +++ b/afl-cmin @@ -25,7 +25,7 @@ awk -f - -- ${@+"$@"} <<'EOF' # ln # cp # pwd -# which +# type # cd # find # stat @@ -264,7 +264,7 @@ BEGIN { if (target_bin && !exists_and_is_executable(target_bin)) { - "which "target_bin" 2>/dev/null" | getline tnew + "type "target_bin" | awk '{print $NF}' 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 { - "which afl-showmap 2>/dev/null" | getline showmap + "type afl-showmap | awk '{print $NF}' 2>/dev/null" | getline showmap } } else { showmap = ENVIRON["AFL_PATH"] "/afl-showmap" |