about summary refs log tree commit diff
path: root/afl-persistent-config
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2023-11-09 15:13:51 +0100
committerGitHub <noreply@github.com>2023-11-09 15:13:51 +0100
commit61e27c6b54f7641a168b6acc6ecffb1754c10918 (patch)
treea82934c35bd84b2893b71646080e46433083d516 /afl-persistent-config
parent85c5b5218c6a7b2289f309fbd1625a5d0a602a00 (diff)
parenta6efdfdb15c8a48967ff773a0ca530a68544cd8f (diff)
downloadafl++-61e27c6b54f7641a168b6acc6ecffb1754c10918.tar.gz
Merge pull request #1906 from AFLplusplus/dev
Dev
Diffstat (limited to 'afl-persistent-config')
-rwxr-xr-xafl-persistent-config7
1 files changed, 6 insertions, 1 deletions
diff --git a/afl-persistent-config b/afl-persistent-config
index 3abcb866..d78db286 100755
--- a/afl-persistent-config
+++ b/afl-persistent-config
@@ -2,7 +2,7 @@
 # written by jhertz
 # 
 
-test "$1" = "-h" -o "$1" = "-hh" && {
+test "$1" = "-h" -o "$1" = "-hh" -o "$1" = "--help" && {
   echo 'afl-persistent-config'
   echo
   echo $0
@@ -17,6 +17,11 @@ test "$1" = "-h" -o "$1" = "-hh" && {
   exit 0
 }
 
+if [ $# -ne 0 ]; then
+  echo "ERROR: Unknown option(s): $@"
+  exit 1
+fi
+
 echo
 echo "WARNING: This scripts makes permanent configuration changes to the system to"
 echo "         increase the performance for fuzzing. As a result, the system also"