about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder <hexcoder-@users.noreply.github.com>2021-03-16 22:58:10 +0100
committerGitHub <noreply@github.com>2021-03-16 22:58:10 +0100
commit6840e8fd2adfd8364787665b7df2fd7b742a580c (patch)
tree602e2c294afab2365454e4f7d734ac8420666866
parent7c2436c7114e21f029b06346421a73910deac578 (diff)
downloadafl++-6840e8fd2adfd8364787665b7df2fd7b742a580c.tar.gz
fix two bugs in error message
$1 and $2 have been modified here by two previous shift commands.
-rwxr-xr-xutils/crash_triage/triage_crashes.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/crash_triage/triage_crashes.sh b/utils/crash_triage/triage_crashes.sh
index bf763cba..4e8f09a0 100755
--- a/utils/crash_triage/triage_crashes.sh
+++ b/utils/crash_triage/triage_crashes.sh
@@ -60,12 +60,12 @@ if
 fi
 
 if [ ! -f "$BIN" -o ! -x "$BIN" ]; then
-  echo "[-] Error: binary '$2' not found or is not executable." 1>&2
+  echo "[-] Error: binary '$BIN' not found or is not executable." 1>&2
   exit 1
 fi
 
 if [ ! -d "$DIR/queue" ]; then
-  echo "[-] Error: directory '$1' not found or not created by afl-fuzz." 1>&2
+  echo "[-] Error: directory '$DIR/queue' not found or not created by afl-fuzz." 1>&2
   exit 1
 fi