about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-07-24 12:55:37 +0200
committervan Hauser <vh@thc.org>2019-07-24 12:55:37 +0200
commit6fa95008bc6872802917cb2f8ddaa44b1ace474d (patch)
tree0a546209f5f2e30864a305cbee13a00f52cac841
parent3789a56225354b1ac13586dc4ef29c1c50fd4af1 (diff)
downloadafl++-6fa95008bc6872802917cb2f8ddaa44b1ace474d.tar.gz
fix root check
-rwxr-xr-xafl-system-config4
1 files changed, 2 insertions, 2 deletions
diff --git a/afl-system-config b/afl-system-config
index 97f95c09..366762ef 100755
--- a/afl-system-config
+++ b/afl-system-config
@@ -1,7 +1,7 @@
 #!/bin/sh
 echo This reconfigures the system to have a better fuzzing performance
-if [[ $EUID -ne 0 ]] || ! [ `id -u` = 0 ]; then
-	echo if you are root \(which you are currently not\)
+if [ '!' "$EUID" = 0 ] && [ '!' `id -u` = 0 ] ; then
+	echo Error you need to be root to run this
 	exit 1
 fi
 sysctl -w kernel.core_pattern=core