diff options
author | hexcoder- <heiko@hexco.de> | 2021-04-06 19:03:53 +0000 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2021-04-06 19:03:53 +0000 |
commit | 19690b606d00b3c32958df07d1b87a3ce8cd8903 (patch) | |
tree | f94dd453bdc030346b64181c5c441a966882fd03 | |
parent | 5ab14f22a5da4e7c9379f75fa043a8f242ba87d4 (diff) | |
download | afl++-19690b606d00b3c32958df07d1b87a3ce8cd8903.tar.gz |
Haiku: create directory for debug_server, if not present
-rwxr-xr-x | afl-system-config | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/afl-system-config b/afl-system-config index ae37a062..2b945d7a 100755 --- a/afl-system-config +++ b/afl-system-config @@ -98,7 +98,9 @@ if [ "$PLATFORM" = "Darwin" ] ; then DONE=1 fi if [ "$PLATFORM" = "Haiku" ] ; then - SETTINGS=~/config/settings/system/debug_server/settings + DEBUG_SERVER_DIR=~/config/settings/system/debug_server + [ ! -r ${DEBUG_SERVER_DIR} ] && mkdir ${DEBUG_SERVER_DIR} + SETTINGS=${DEBUG_SERVER_DIR}/settings [ -r ${SETTINGS} ] && grep -qE "default_action\s+kill" ${SETTINGS} && { echo "Nothing to do"; } || { \ echo We change the debug_server default_action from user to silently kill; \ [ ! -r ${SETTINGS} ] && echo "default_action kill" >${SETTINGS} || { mv ${SETTINGS} s.tmp; sed -e "s/default_action\s\s*user/default_action kill/" s.tmp > ${SETTINGS}; rm s.tmp; }; \ |